Author: akazakov
Date: 2009-11-20 09:19:51 -0500 (Fri, 20 Nov 2009)
New Revision: 18760
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/NavigatorContentProvider.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5197
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 2009-11-20
14:06:26 UTC (rev 18759)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/NavigatorContentProvider.java 2009-11-20
14:19:51 UTC (rev 18760)
@@ -283,6 +283,7 @@
if(nature == null) {
o.getModel().removeModelTreeListener(syncListener);
viewer.remove(o);
+ if(p!=null && p.exists() && p.getLocation()!=null)
projects.remove(p.getLocation().toString());
} else {
String classname =
o.getModel().getMetaData().getMapping("FilteredTrees").getValue(getFilteredTreeName(o.getModel()));
//$NON-NLS-1$