> entry : possibleStrategies
+ .entrySet()) {
+ AbstractFaceletValidationStrategy instance = entry.getValue().getInstance(project);
+ if (instance != null) {
+
+ int priority = instance.getPriority();
+ if (priority > maxPriority) {
+ strategies.clear();
+ maxPriority = priority;
+ strategies.add(instance);
+ }
- if (findUri == null)
- {
- final Diagnostic diag = _diagnosticFactory.create_CANNOT_FIND_FACELET_TAGLIB(declaredUri);
- final IDOMAttr domAttr = (IDOMAttr) attr;
- reporter.report(diag, domAttr.getValueRegionStartOffset(), domAttr
- .getValue().length());
- }
+ if (priority == maxPriority) {
+ strategies.add(instance);
}
}
}
+ return strategies;
}
-
- private boolean shouldValidate(final IFile model)
- {
- final IContentTypeManager manager = Platform.getContentTypeManager();
- final IContentType contentType = manager
- .getContentType("org.eclipse.wst.html.core.htmlsource");
- return (contentType.isAssociatedWith(model.getName()))
- && ViewUtil.isFaceletVDLFile(model);
- }
+
}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.properties b/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.properties
index 1b2b72bda..397cad267 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.properties
+++ b/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.properties
@@ -11,5 +11,5 @@ New_Simple_Facelet_Composition_Page=New Facelet Composition Page
New_Simple_Facelet_Composition_Page_Description=Creates a new Facelet page for use with a template.
New_Facelet_Header.header=\n\n\n\nMy Facelet Application
\n\n\n
New_Facelet_Footer.footer=\n\n\n\n\nInsert title here\n\n\n\n\n\n
-New_Facelet_Template.template=\n\n\n Default title\n\n\n\n\n\n\n\n\n \n Content area. See comments below this line in the source.\n \n \n \n \n \n
\n\n\n\n\n\n\n
+New_Facelet_Template.template=\n\n\n Default title\n\n\n\n\n\n\n\n\n\n \n Content area. See comments below this line in the source.\n \n \n \n \n \n
\n\n\n\n\n\n\n
New_Simple_Facelet_Composition_Page.composition=\n\n\n\n\n \n Add your header here or delete to use the default\n \n \n Add your content here or delete to use the default\n \n \n Add your footer here or delete to use the default\n \n\n
--
cgit v1.2.3