Author: vyemialyanchyk
Date: 2007-12-14 07:50:44 -0500 (Fri, 14 Dec 2007)
New Revision: 5311
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/BundleMap.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1243
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/BundleMap.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/BundleMap.java 2007-12-14
12:48:32 UTC (rev 5310)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/BundleMap.java 2007-12-14
12:50:44 UTC (rev 5311)
@@ -108,6 +108,7 @@
IEditorInput ei = editor.getEditorInput();
if(!(ei instanceof IFileEditorInput)) return false;
IProject project = ((IFileEditorInput)ei).getFile().getProject();
+ if (!project.exists() || !project.isOpen()) return false;
for (int i = 0; i < JSF_PROJECT_NATURES.length; i++) {
if (project.getNature(JSF_PROJECT_NATURES[i]) != null)