Author: scabanovich
Date: 2009-11-26 08:04:27 -0500 (Thu, 26 Nov 2009)
New Revision: 18851
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectStorageEditorInput.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4635
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectStorageEditorInput.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectStorageEditorInput.java 2009-11-26
12:45:12 UTC (rev 18850)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectStorageEditorInput.java 2009-11-26
13:04:27 UTC (rev 18851)
@@ -79,10 +79,10 @@
if(!(o instanceof JarSystemImpl)) return null;
String file = ((JarSystemImpl)o).getLocation();
- IFile[] fs = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(new
File(file).toURI());
- if(fs == null || fs.length == 0) return null;
+// IFile[] fs = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(new
File(file).toURI());
+// if(fs == null || fs.length == 0) return null;
- IProject p = fs[0].getProject();
+ IProject p = EclipseResourceUtil.getProject(o);
IJavaProject jp = EclipseResourceUtil.getJavaProject(p);
if(jp == null) return null;