Author: scabanovich
Date: 2007-11-14 09:18:56 -0500 (Wed, 14 Nov 2007)
New Revision: 4904
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/NavigatorContentProvider.java
Log:
JBIDE-1309
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/NavigatorContentProvider.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/NavigatorContentProvider.java 2007-11-14
13:38:45 UTC (rev 4903)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/NavigatorContentProvider.java 2007-11-14
14:18:56 UTC (rev 4904)
@@ -36,6 +36,7 @@
import org.jboss.tools.common.model.XFilteredTree;
import org.jboss.tools.common.model.XModel;
import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.filesystems.FileSystemsHelper;
import org.jboss.tools.common.model.project.IModelNature;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.model.ui.ModelUIPlugin;
@@ -207,6 +208,7 @@
XFilteredTree getFilteredTree(Object object) {
if (object instanceof XModelObject) {
XModel model = ((XModelObject)object).getModel();
+ if(FileSystemsHelper.getFileSystems(model) == null) return null;
String name = getFilteredTreeName(model);
return filteredTrees.getFilteredTree(name, model);
}
Show replies by date