[jboss-cvs] jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils ...

Max Rydahl Andersen mandersen at jboss.com
Mon Oct 23 09:22:55 EDT 2006


  User: mandersen
  Date: 06/10/23 09:22:55

  Modified:    hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils 
                        ProjectUtils.java
  Log:
  HBX-597 New Hibernate Configuration wizard is missing the Classpath list
  HBX-786 Remove the requirement for users to specify the classpath
  
  Revision  Changes    Path
  1.9       +4 -2      jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/ProjectUtils.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ProjectUtils.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/ProjectUtils.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- ProjectUtils.java	7 Jul 2006 13:51:12 -0000	1.8
  +++ ProjectUtils.java	23 Oct 2006 13:22:55 -0000	1.9
  @@ -27,16 +27,15 @@
   import org.eclipse.core.resources.IWorkspaceRoot;
   import org.eclipse.core.resources.ResourcesPlugin;
   import org.eclipse.core.runtime.CoreException;
  -import org.eclipse.core.runtime.IPath;
   import org.eclipse.core.runtime.IProgressMonitor;
   import org.eclipse.core.runtime.NullProgressMonitor;
   import org.eclipse.core.runtime.OperationCanceledException;
  -import org.eclipse.core.runtime.Path;
   import org.eclipse.jdt.core.IJavaProject;
   import org.eclipse.jdt.core.JavaCore;
   import org.eclipse.ui.IEditorInput;
   import org.eclipse.ui.IEditorPart;
   import org.eclipse.ui.IFileEditorInput;
  +import org.hibernate.util.StringHelper;
   
   public class ProjectUtils {
   
  @@ -115,6 +114,9 @@
   	}	
   	
   	static public IJavaProject findJavaProject(String name) {
  +		if(StringHelper.isEmpty( name )) {
  +			return null;
  +		}
   		IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
   		IProject project = null;
   		project = root.getProject(name);
  
  
  



More information about the jboss-cvs-commits mailing list