Author: scabanovich
Date: 2010-02-02 09:24:58 -0500 (Tue, 02 Feb 2010)
New Revision: 20081
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ResourceLabelProvider.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5781
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ResourceLabelProvider.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ResourceLabelProvider.java 2010-02-02
14:23:42 UTC (rev 20080)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ResourceLabelProvider.java 2010-02-02
14:24:58 UTC (rev 20081)
@@ -16,6 +16,7 @@
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
import org.jboss.tools.common.model.*;
+import org.jboss.tools.common.model.loaders.EntityRecognizerContext;
import org.jboss.tools.common.model.options.PreferenceModelUtilities;
public class ResourceLabelProvider extends LabelProvider {
@@ -81,7 +82,7 @@
if(filename.startsWith("struts-")) return "StrutsConfig11";
//$NON-NLS-1$ //$NON-NLS-2$
return "FileXML"; //$NON-NLS-1$
}
- String entity = model.getEntityRecognizer().getEntityName(filename, ext, null);
+ String entity = model.getEntityRecognizer().getEntityName(new
EntityRecognizerContext(filename, ext, null));
if(entity == null) entity = "FileTXT"; //$NON-NLS-1$
return entity;
}