Author: mculpepper(a)jboss.com
Date: 2007-06-15 21:45:22 -0400 (Fri, 15 Jun 2007)
New Revision: 2141
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java
Log:
project should've been compared to IArchiveModelNode's project path, not the
node itself
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java
===================================================================
---
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java 2007-06-16
00:57:51 UTC (rev 2140)
+++
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java 2007-06-16
01:45:22 UTC (rev 2141)
@@ -7,6 +7,7 @@
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
@@ -211,7 +212,10 @@
return;
}
- if( project.equals(packageViewer.getInput()))
+ IArchiveModelNode node = (IArchiveModelNode) packageViewer.getInput();
+ IPath projectPath = node.getProjectPath();
+
+ if( project.getLocation().equals(projectPath))
return;
if( ArchivesModelCore.packageFileExists(project.getLocation()) ) {
Show replies by date