Author: rob.stryker(a)jboss.com
Date: 2007-11-16 14:07:30 -0500 (Fri, 16 Nov 2007)
New Revision: 4957
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java
Log:
JBIDE-1325 Much simpler solution ;)
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java
===================================================================
---
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java 2007-11-16
17:54:26 UTC (rev 4956)
+++
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java 2007-11-16
19:07:30 UTC (rev 4957)
@@ -297,16 +297,8 @@
} else {
rootProjectLabel.setText(parentNode.getProjectPath().lastSegment());
rootDirIsWorkspaceRelative = true;
-
- // Done since the parentNode.getProjectPath() project might be *outside* the
workspace. Shouldn't the parentNode have a getProject() instead ?
- IContainer[] findContainersForLocation =
ResourcesPlugin.getWorkspace().getRoot().findContainersForLocation(parentNode.getProjectPath());
- for (int i = 0; i < findContainersForLocation.length; i++) {
- IContainer container = findContainersForLocation[i];
- if(container.getType()==IResource.PROJECT) {
- rootDir = container.getLocation();
- continue;
- }
- }
+ rootDir = parentNode.getProjectPath();
+ rootDirText.setText(rootDir.toString());
}
}
Show replies by date