[jboss-cvs] jbosside/core/plugins/org.jboss.ide.eclipse.packages.ui/src/main/org/jboss/ide/eclipse/packages/ui/wizards ...

Marshall Culpepper mculpepper at jboss.com
Thu Nov 16 15:56:57 EST 2006


  User: mculpepper
  Date: 06/11/16 15:56:57

  Modified:    core/plugins/org.jboss.ide.eclipse.packages.ui/src/main/org/jboss/ide/eclipse/packages/ui/wizards 
                        AbstractPackageWizard.java
  Log:
  fixed some modeling bugs where folder and package nodes that weren't at the top level were being replaced at the root node.. fixed
  
  Revision  Changes    Path
  1.4       +4 -2      jbosside/core/plugins/org.jboss.ide.eclipse.packages.ui/src/main/org/jboss/ide/eclipse/packages/ui/wizards/AbstractPackageWizard.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AbstractPackageWizard.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/core/plugins/org.jboss.ide.eclipse.packages.ui/src/main/org/jboss/ide/eclipse/packages/ui/wizards/AbstractPackageWizard.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- AbstractPackageWizard.java	15 Nov 2006 03:36:32 -0000	1.3
  +++ AbstractPackageWizard.java	16 Nov 2006 20:56:57 -0000	1.4
  @@ -48,7 +48,10 @@
   	}
   	
   	public boolean performFinish() {
  -		IPackage pkg = PackagesCore.createPackage(project);
  +		Object destContainer = firstPage.getPackageDestination();
  +		
  +		boolean isTopLevel = (destContainer == null || (!(destContainer instanceof IPackageNode)));
  +		IPackage pkg = PackagesCore.createPackage(project, isTopLevel);
   		IPackageWorkingCopy packageWC = pkg.createPackageWorkingCopy();
   		
   		packageWC.setName(firstPage.getPackageName());
  @@ -58,7 +61,6 @@
   			packageWC.setManifest(firstPage.getManifestFile());
   		}
   		
  -		Object destContainer = firstPage.getPackageDestination();
   		if (!destContainer.equals(project) && destContainer instanceof IContainer) {
   			packageWC.setDestinationContainer((IContainer)destContainer);
   		}
  
  
  



More information about the jboss-cvs-commits mailing list