Author: scabanovich
Date: 2010-10-13 10:58:31 -0400 (Wed, 13 Oct 2010)
New Revision: 25791
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
Log:
JBIDE-7319
https://jira.jboss.org/browse/JBIDE-7319
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2010-10-13
14:57:46 UTC (rev 25790)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2010-10-13
14:58:31 UTC (rev 25791)
@@ -2376,18 +2376,14 @@
Map<IPath, Boolean> paths = new HashMap<IPath, Boolean>();
public boolean isThisProject(IPath path) {
- if(path.toString().equals("/seam77")) {
- System.out.println("hh");
- }
Boolean b = paths.get(path);
if(b == null) {
- IFile f = null;
- try {
- f = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
- } catch (Exception e) {
- System.out.println("Bad path=" + path);
+ if(path != null && path.toString().endsWith(".jar")) {
//$NON-NLS-1$
+ b = true;
+ } else {
+ IFile f = path.segmentCount() < 2 ? null :
ResourcesPlugin.getWorkspace().getRoot().getFile(path);
+ b = !(f != null && f.exists() && f.getProject() != project);
}
- b = !(f != null && f.exists() && f.getProject() != project);
paths.put(path, b);
}
return b.booleanValue();