Author: yzhishko
Date: 2009-12-15 08:00:07 -0500 (Tue, 15 Dec 2009)
New Revision: 19275
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/BundleMap.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5460 fixed
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 2009-12-15
12:42:13 UTC (rev 19274)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/BundleMap.java 2009-12-15
13:00:07 UTC (rev 19275)
@@ -46,6 +46,7 @@
import org.jboss.tools.common.model.event.XModelTreeEvent;
import org.jboss.tools.common.model.event.XModelTreeListener;
import org.jboss.tools.common.model.options.PreferenceModelUtilities;
+import org.jboss.tools.common.model.project.IModelNature;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.jst.jsp.JspEditorPlugin;
import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage;
@@ -155,7 +156,7 @@
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)
+ if (project.hasNature(JSF_PROJECT_NATURES[i]))
return true;
}
} catch (CoreException e) {