Author: scabanovich
Date: 2010-02-02 09:23:42 -0500 (Tue, 02 Feb 2010)
New Revision: 20080
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/XMLContentDescriber.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5781
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/XMLContentDescriber.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/XMLContentDescriber.java 2010-02-02
14:22:13 UTC (rev 20079)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/XMLContentDescriber.java 2010-02-02
14:23:42 UTC (rev 20080)
@@ -17,6 +17,7 @@
import org.eclipse.core.runtime.content.IContentDescription;
import org.eclipse.core.runtime.content.ITextContentDescriber;
import org.jboss.tools.common.CommonPlugin;
+import org.jboss.tools.common.model.loaders.EntityRecognizerContext;
import org.jboss.tools.common.model.options.PreferenceModelUtilities;
import org.jboss.tools.common.util.FileUtil;
@@ -40,7 +41,7 @@
}
private int describe(String text, IContentDescription description) {
- String entity =
PreferenceModelUtilities.getPreferenceModel().getEntityRecognizer().getEntityName("xml",
text); //$NON-NLS-1$
+ String entity =
PreferenceModelUtilities.getPreferenceModel().getEntityRecognizer().getEntityName(new
EntityRecognizerContext("xml", text)); //$NON-NLS-1$
if(entity == null || entity.length() == 0 || entity.equals("FileXML")
//$NON-NLS-1$
|| entity.equals("FileHibConfig3") ||
entity.equals("FileHibernate3") //$NON-NLS-1$ //$NON-NLS-2$
|| entity.equals("FileANT") //$NON-NLS-1$