Author: scabanovich
Date: 2009-12-11 11:29:07 -0500 (Fri, 11 Dec 2009)
New Revision: 19218
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagNameHyperlinkPartitioner.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5437
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagNameHyperlinkPartitioner.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagNameHyperlinkPartitioner.java 2009-12-11
16:23:17 UTC (rev 19217)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagNameHyperlinkPartitioner.java 2009-12-11
16:29:07 UTC (rev 19218)
@@ -22,6 +22,7 @@
import org.jboss.tools.jsf.project.JSFNature;
import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitioner;
import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion;
import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecognizer;
@@ -82,11 +83,14 @@
if(project==null) {
return false;
}
- for (int i = 0; i < JSF_PROJECT_NATURES.length; i++) {
- if (project.getNature(JSF_PROJECT_NATURES[i]) != null)
- return true;
+ if(EclipseResourceUtil.getModelNature(project) != null) {
+ for (int i = 0; i < JSF_PROJECT_NATURES.length; i++) {
+ if (project.getNature(JSF_PROJECT_NATURES[i]) != null)
+ return true;
+ }
+ return false;
}
- return false;
+ return true;
} catch (CoreException x) {
JSFExtensionsPlugin.log("", x); //$NON-NLS-1$
return false;