diff options
7 files changed, 1118 insertions, 946 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/plugin.properties b/jsf/plugins/org.eclipse.jst.jsf.core/plugin.properties index 3bb2d58db..b06256236 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.core/plugin.properties +++ b/jsf/plugins/org.eclipse.jst.jsf.core/plugin.properties @@ -1,61 +1,64 @@ -############################################################################### -# Copyright (c) 2005 Oracle Corporation. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# Gerry Kessler - initial API and implementation -############################################################################### -plugin.name=JavaServer Faces Tools - Core -plugin.provider=Eclipse.org -plugin.facet.name=JavaServer Faces -plugin.facet.description=Enables the project to be deployed with JSF capabilities. - -JSFELValidator=JSP JSF EL Validator - -JSFv11Project=JavaServer Faces v1.1 Project -JSFv11PresetDesc=Configures a Dynamic Web application to use JSF v1.1 - -JSFv12Project=JavaServer Faces v1.2 Project -JSFv12PresetDesc=Configures a Dynamic Web application to use JSF v1.2 - -JSFv20Project=JavaServer Faces v2.0 Project -JSFv20PresetDesc=Configures a Dynamic Web application to use JSF v2.0 - -JSFv21Project=JavaServer Faces v2.1 Project -JSFv21PresetDesc=Configures a Dynamic Web application to use JSF v2.1 -# ==================================================================== - -pluginName = Constraints Model -providerName = www.example.org - -#================================= -jsp.tag.registry=JSP Tag Registry - -plugin.facet.extension.name=JavaServer Faces - -JSP_TAG_REGISTRY_DESCRIPTION = JSP tag registry -extension-point.name.0 = jsfLibraries -extension-point.name.1 = pluginProvidedJsfLibraries -extension-point.name.2 = Property Resolver Ext Point -extension-point.name.3 = Method Resolver Ext Point -extension-point.name.4 = External Context Ext Point -extension-point.name.5 = MetaDataEnabledFeatures -extension-point.name.6 = JSF View Handler Extension -extension-point.name.7 = customViewMapper -extension-point.name.8 = Variable Resolver Ext Point -extension-point.name.9 = AttributeValueRuntimeTypes -extension-point.name.10 = JSF Tag Library Registry -extension-point.name.11 = JSF Facet Configuration - -noOpLibraryProviderWarning = Library configuration is disabled. Further classpath changes may be required later. -noOpLibraryProviderMessage = This facet requires JSF implementation library to be present on project classpath. By disabling library configuration, user takes on responsibility of configuring classpath appropriately via alternate means. - -extension-point.name.12 = Symbol Context Resolver Factory Delegate -extension-point.name.13 = Tag Registry Factory -extension-point.name.14 = JSF AppConfig Locator Provider Factory (internal) -extension-point.name.15 = JSF AppConfig Manager Factory (internal) -Facelet.name=Facelet +###############################################################################
+# Copyright (c) 2005 Oracle Corporation.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Gerry Kessler - initial API and implementation
+###############################################################################
+plugin.name=JavaServer Faces Tools - Core
+plugin.provider=Eclipse.org
+plugin.facet.name=JavaServer Faces
+plugin.facet.description=Enables the project to be deployed with JSF capabilities.
+
+JSFELValidator=JSP JSF EL Validator
+
+JSFv11Project=JavaServer Faces v1.1 Project
+JSFv11PresetDesc=Configures a Dynamic Web application to use JSF v1.1
+
+JSFv12Project=JavaServer Faces v1.2 Project
+JSFv12PresetDesc=Configures a Dynamic Web application to use JSF v1.2
+
+JSFv20Project=JavaServer Faces v2.0 Project
+JSFv20PresetDesc=Configures a Dynamic Web application to use JSF v2.0
+
+JSFv21Project=JavaServer Faces v2.1 Project
+JSFv21PresetDesc=Configures a Dynamic Web application to use JSF v2.1
+
+JSFv22Project=JavaServer Faces v2.2 Project
+JSFv22PresetDesc=Configures a Dynamic Web application to use JSF v2.2
+# ====================================================================
+
+pluginName = Constraints Model
+providerName = www.example.org
+
+#=================================
+jsp.tag.registry=JSP Tag Registry
+
+plugin.facet.extension.name=JavaServer Faces
+
+JSP_TAG_REGISTRY_DESCRIPTION = JSP tag registry
+extension-point.name.0 = jsfLibraries
+extension-point.name.1 = pluginProvidedJsfLibraries
+extension-point.name.2 = Property Resolver Ext Point
+extension-point.name.3 = Method Resolver Ext Point
+extension-point.name.4 = External Context Ext Point
+extension-point.name.5 = MetaDataEnabledFeatures
+extension-point.name.6 = JSF View Handler Extension
+extension-point.name.7 = customViewMapper
+extension-point.name.8 = Variable Resolver Ext Point
+extension-point.name.9 = AttributeValueRuntimeTypes
+extension-point.name.10 = JSF Tag Library Registry
+extension-point.name.11 = JSF Facet Configuration
+
+noOpLibraryProviderWarning = Library configuration is disabled. Further classpath changes may be required later.
+noOpLibraryProviderMessage = This facet requires JSF implementation library to be present on project classpath. By disabling library configuration, user takes on responsibility of configuring classpath appropriately via alternate means.
+
+extension-point.name.12 = Symbol Context Resolver Factory Delegate
+extension-point.name.13 = Tag Registry Factory
+extension-point.name.14 = JSF AppConfig Locator Provider Factory (internal)
+extension-point.name.15 = JSF AppConfig Manager Factory (internal)
+Facelet.name=Facelet
FaceletComposite.name=Facelet Composite Component
\ No newline at end of file diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/plugin.xml b/jsf/plugins/org.eclipse.jst.jsf.core/plugin.xml index 9381d5d0a..e645c0342 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.core/plugin.xml +++ b/jsf/plugins/org.eclipse.jst.jsf.core/plugin.xml @@ -1,568 +1,642 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.0"?> -<plugin> - <extension-point id="jsfLibraries" name="%extension-point.name.0" schema="schema/jsfLibraries.exsd"/> - <extension-point id="pluginProvidedJsfLibraries" name="%extension-point.name.1" schema="schema/pluginProvidedJsfLibraries.exsd"/> - <extension-point id="variableresolver" name="%extension-point.name.8" schema="schema/variableresolver.exsd"/> - <extension-point id="propertyresolver" name="%extension-point.name.2" schema="schema/propertyresolver.exsd"/> - <extension-point id="methodresolver" name="%extension-point.name.3" schema="schema/methodresolver.exsd"/> - <extension-point id="externalcontext" name="%extension-point.name.4" schema="schema/externalcontext.exsd"/> - <extension-point id="AttributeValueRuntimeTypes" name="%extension-point.name.9" schema="schema/AttributeValueRuntimeTypes.exsd"/> - <extension-point id="MetaDataEnabledFeatures" name="%extension-point.name.5" schema="schema/MetaDataEnabledFeatures.exsd"/> - <extension-point id="tagregistry" name="%extension-point.name.10" schema="schema/tagregistry.exsd"/> - <extension-point id="viewhandler" name="%extension-point.name.6" schema="schema/viewhandler.exsd"/> - <extension-point id="customViewMapper" name="%extension-point.name.7" schema="schema/customViewMapper.exsd"/> - <extension-point id="jsfFacetConfiguration" name="%extension-point.name.11" schema="schema/jsfFacetConfiguration.exsd"/> - <extension-point id="symbolContextResolverFactory" name="%extension-point.name.12" schema="schema/symbolContextResolverFactory.exsd"/> - <extension-point id="tagRegistryFactory" name="%extension-point.name.13" schema="schema/tagRegistryFactory.exsd"/> - <extension-point id="jsfAppConfigLocatorProviderFactory" name="%extension-point.name.14" schema="schema/jsfAppConfigLocatorProviderFactory.exsd"/> - <extension-point id="jsfAppConfigManagerFactory" name="%extension-point.name.15" schema="schema/jsfAppConfigManagerFactory.exsd"/> - <extension point="org.eclipse.emf.ecore.generated_package"> - <package - uri = "http://org.eclipse.jst.jsf.core/constraints.ecore" - class = "org.eclipse.jst.jsf.validation.internal.constraints.ConstraintsPackage" - genModel = "model/constraints.genmodel" /> - <package - uri = "http://org.eclipse.jsf.pagedesigner/paletteInfos.ecore" - class = "org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfosPackage" - genModel = "model/paletteInfos.genmodel" /> - <package - uri = "http://org.eclipse.jst.jsf.core/componentMapping.ecore" - class = "org.eclipse.jst.jsf.designtime.internal.view.mapping.viewmapping.ComponentMappingPackage" - genModel = "model/componentMapping.genmodel" /> - </extension> - <!-- JSF Project Facets --> - <extension - id="org.eclipse.jst.jsf.project.facet" - name="%plugin.facet.extension.name" - point="org.eclipse.wst.common.project.facet.core.facets"> - - <project-facet id="jst.jsf"> - <label>%plugin.facet.name</label> - <description>%plugin.facet.description</description> - </project-facet> - - <project-facet-version facet="jst.jsf" version="1.1"> - <constraint> - <and> - <requires facet="jst.web" version="[2.3"/> - </and> - </constraint> - </project-facet-version> - - <project-facet-version facet="jst.jsf" version="1.2"> - <constraint> - <and> - <requires facet="jst.web" version="[2.5"/> - </and> - </constraint> - </project-facet-version> - - <project-facet-version facet="jst.jsf" version="2.0"> - <constraint> - <and> - <requires facet="jst.web" version="[2.5"/> - </and> - </constraint> - </project-facet-version> - - <project-facet-version facet="jst.jsf" version="2.1"> - <constraint> - <and> - <requires facet="jst.web" version="[2.5"/> - </and> - </constraint> - </project-facet-version> - - <action id="jst.jsf.v11.install" facet="jst.jsf" type="INSTALL" version="1.1"> - <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDelegate"/> - <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider"/> - </action> - - <action id="jst.jsf.v11.uninstall" facet="jst.jsf" type="UNINSTALL" version="1.1" > - <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallConfig$Factory"/> - <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallDelegate"/> - </action> - - <action id="jst.jsf.v12.install" facet="jst.jsf" type="INSTALL" version="1.2"> - <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDelegate"/> - <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider"/> - </action> - - <action id="jst.jsf.v12.uninstall" facet="jst.jsf" version="1.2" type="UNINSTALL"> - <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallConfig$Factory"/> - <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallDelegate"/> - </action> - - <action id="jst.jsf.v20.install" facet="jst.jsf" type="INSTALL" version="2.0"> - <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDelegate"/> - <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider"/> - </action> - - <action id="jst.jsf.v20.uninstall" facet="jst.jsf" version="2.0" type="UNINSTALL"> - <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallConfig$Factory"/> - <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallDelegate"/> - </action> - - <action id="jst.jsf.v21.install" facet="jst.jsf" type="INSTALL" version="2.1"> - <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDelegate"/> - <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider"/> - </action> - - <action id="jst.jsf.v21.uninstall" facet="jst.jsf" version="2.1" type="UNINSTALL"> - <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallConfig$Factory"/> - <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallDelegate"/> - </action> - - </extension> - - <extension - point="org.eclipse.wst.common.project.facet.core.listeners"> - <listener - class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetPrimaryRuntimeChangedListener" - eventTypes="PRIMARY_RUNTIME_CHANGED"> - </listener> - </extension> - - <extension - point="org.eclipse.wst.common.project.facet.core.presets"> - <static-preset - id="preset.jst.jsf.v1_1" extends="default.configuration"> - <label>%JSFv11Project</label> - <facet id="jst.java" version="1.4" /> - <facet id="jst.web" version="2.4"/> - <facet id="jst.jsf" version="1.1" /> - <description>%JSFv11PresetDesc</description> - </static-preset> - <static-preset - id="preset.jst.jsf.v1_2" extends="default.configuration"> - <label>%JSFv12Project</label> - <facet id="jst.java" version="1.5" /> - <facet id="jst.web" version="2.5"/> - <facet id="jst.jsf" version="1.2" /> - <description> - %JSFv12PresetDesc - </description> - </static-preset> - <static-preset - id="preset.jst.jsf.v2_0" extends="default.configuration"> - <label> - %JSFv20Project - </label> - <facet - id="jst.java" - version="1.6"> - </facet> - <facet - id="jst.web" - version="3.0"> - </facet> - <facet - id="jst.jsf" - version="2.0"> - </facet> - <description> - %JSFv20PresetDesc - </description> - </static-preset> - <static-preset - id="preset.jst.jsf.v2_1" extends="default.configuration"> - <label> - %JSFv21Project - </label> - <facet - id="jst.java" - version="1.6"> - </facet> - <facet - id="jst.web" - version="3.0"> - </facet> - <facet - id="jst.jsf" - version="2.1"> - </facet> - <description> - %JSFv21PresetDesc - </description> - </static-preset> - </extension> - - <extension point="org.eclipse.wst.common.project.facet.core.runtimes"> - <supported> - <runtime-component any="true"/> - <facet id="jst.jsf" version="1.1,1.2,2.0,2.1"/> - </supported> - </extension> - - <extension - name="JSF JSP File URL" - point="org.eclipse.jst.j2ee.web.fileURL"> - <fileURL id="jsfPage"><run class="org.eclipse.jst.jsf.core.internal.launch.JSFFileURL"/></fileURL> - </extension> - - <extension - point="org.eclipse.jst.jsf.common.symbolSourceProvider"> - <symbolSourceId factory="org.eclipse.jst.jsf.designtime.internal.symbols.JSPTagVariableSymbolSourceProvider"/> - </extension> - <extension - point="org.eclipse.jst.jsf.common.contextSymbolFactory"> - <contextSymbolFactory - factory="org.eclipse.jst.jsf.designtime.internal.jsp.JSPDefaultSymbolFactory" - factoryId="org.eclipse.jst.jsf.designtime.core.loadBundle"/> - </extension> - <extension - point="org.eclipse.jst.jsf.core.variableresolver"> - <variableresolver - class="org.eclipse.jst.jsf.designtime.internal.symbols.ConfigBasedDTVariableResolver" - id="org.eclipse.jst.jsf.core.variableresolver.default.decorative"/> - </extension> - <extension - point="org.eclipse.jst.jsf.core.variableresolver"> - <variableresolver - class="org.eclipse.jst.jsf.designtime.el.DefaultDTVariableResolver" - id="org.eclipse.jst.jsf.core.variableresolver.default"/> - </extension> - <extension - point="org.eclipse.jst.jsf.core.propertyresolver"> - <propertyresolver - class="org.eclipse.jst.jsf.designtime.el.DefaultDTPropertyResolver" - id="org.eclipse.jst.jsf.core.propertyresolver.default"/> - </extension> - <extension - point="org.eclipse.jst.jsf.core.propertyresolver"> - <propertyresolver - class="org.eclipse.jst.jsf.designtime.internal.symbols.ConfigBasedDTPropertyResolver" - id="org.eclipse.jst.jsf.core.propertyresolver.default.decorative" - instancePerProject="true"> - </propertyresolver> - </extension> - <extension - point="org.eclipse.jst.jsf.core.methodresolver"> - <methodresolver - class="org.eclipse.jst.jsf.designtime.el.DefaultDTMethodResolver" - id="org.eclipse.jst.jsf.core.methodresolver.default"/> - </extension> - <extension - point="org.eclipse.jst.jsf.core.externalcontext"> - <externalcontext - class="org.eclipse.jst.jsf.designtime.context.DefaultDTExternalContextFactory" - id="org.eclipse.jst.jsf.core.externalcontext.default"/> - </extension> - - <extension - point="org.eclipse.jst.jsf.core.AttributeValueRuntimeTypes"> - - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.metadataprocessors.AbstractRootTypeDescriptor" - id="attributevalues.BaseType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.StringType" - id="attributevalues.StringType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.AnyStringType" - id="attributevalues.AnyStringType"> - </attributeValueRuntimeType> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.BooleanType" - id="attributevalues.BooleanType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.LongType" - id="attributevalues.LongType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.IntegerType" - id="attributevalues.IntegerType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.DoubleType" - id="attributevalues.DoubleType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.JavaClassType" - id="attributevalues.JavaClassType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.MethodBindingType" - id="attributevalues.MethodBindingType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ActionType" - id="attributevalues.ActionType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ValueBindingType" - id="attributevalues.ValueBindingType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ValueType" - id="attributevalues.ValueType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.FacesConfigIdentifierType" - id="attributevalues.FacesConfigIdentifierType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.FacesConfigValidatorIDType" - id="attributevalues.FacesConfigValidatorIDType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.FacesConfigConverterIDType" - id="attributevalues.FacesConfigConverterIDType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ComponentBindingType" - id="attributevalues.ComponentBindingType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ComponentIDType" - id="attributevalues.ComponentIDType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.LengthType" - id="attributevalues.LengthType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ColorType" - id="attributevalues.ColorType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ResourceBundleType" - id="attributevalues.ResourceBundleType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.LanguageCodeType" - id="attributevalues.LanguageCodeType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.RelativePathType" - id="attributevalues.RelativePathType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.WebPathType" - id="attributevalues.WebPathType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.CurrencyCodeType" - id="attributevalues.CurrencyCodeType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.LocaleType" - id="attributevalues.LocaleType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.TimeZoneType" - id="attributevalues.TimeZoneType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.DateTimePatternType" - id="attributevalues.DateTimePatternType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.NumberPatternType" - id="attributevalues.NumberPatternType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ScriptType" - id="attributevalues.ScriptType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.CharacterType" - id="attributevalues.CharacterType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.LinkType" - id="attributevalues.LinkType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ContentType" - id="attributevalues.ContentType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.URIType" - id="attributevalues.URIType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.CSSClassType" - id="attributevalues.CSSClassType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.CSSIdType" - id="attributevalues.CSSIdType"/> - <attributeValueRuntimeType - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.CSSStyleType" - id="attributevalues.CSSStyleType"/> - </extension> - - <extension - point="org.eclipse.jst.jsf.core.MetaDataEnabledFeatures"> - <MetaDataEnabledFeature - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.FacesConfigValidatorIDFeatures" - typeid="org.eclipse.jst.jsf.core.attributevalues.FacesConfigValidatorIDType"/> - <MetaDataEnabledFeature - class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.FacesConfigConverterIDFeatures" - typeid="org.eclipse.jst.jsf.core.attributevalues.FacesConfigConverterIDType"/> - </extension> - - <extension - point="org.eclipse.jst.jsf.common.symbolSourceProvider"> - <symbolSourceId - factory="org.eclipse.jst.jsf.designtime.internal.symbols.ResourceBundleSymbolSourceProvider"> - </symbolSourceId> - </extension> - <extension - point="org.eclipse.jst.jsf.common.domainSourceModelTypes"> - <domainSourceModelTypes - domainId="TagLibraryDomain" - domainSourceModelTypeId="TaglibContentModelHandler" - locator="org.eclipse.jst.jsf.core.metadata.internal.TaglibMetaDataLocator" - ordinal="5"> - </domainSourceModelTypes> - </extension> - - <extension - point="org.eclipse.jst.jsf.common.domainSourceModelTypeTranslators"> - <domainSourceModelTypeTranslator - domainSourceModelTypeId="TaglibContentModelHandler" - translatorClass="org.eclipse.jst.jsf.core.metadata.internal.HTMLContentModelMetaDataTranslator"> - </domainSourceModelTypeTranslator> - <domainSourceModelTypeTranslator - domainSourceModelTypeId="TaglibContentModelHandler" - translatorClass="org.eclipse.jst.jsf.core.metadata.internal.JSPContentModelMetaDataTranslator"> - </domainSourceModelTypeTranslator> - <domainSourceModelTypeTranslator - domainSourceModelTypeId="TaglibContentModelHandler" - translatorClass="org.eclipse.jst.jsf.core.metadata.internal.TaglibMetaDataTLDTranslator"> - </domainSourceModelTypeTranslator> - </extension> - - <extension point="org.eclipse.jdt.core.classpathContainerInitializer"> - <classpathContainerInitializer - class="org.eclipse.jst.jsf.core.internal.JSFLibrariesContainerInitializer" - id="org.eclipse.jst.jsf.core.internal.jsflibrarycontainer"/> - </extension> - <extension - point="org.eclipse.jst.jsf.core.tagregistry"> - <tagRegistry - class="org.eclipse.jst.jsf.designtime.internal.view.model.jsp.registry.TLDRegistryManager$MyRegistryFactory" - description="%JSP_TAG_REGISTRY_DESCRIPTION" - id="default.jsp"> - <content-type - contentTypeId="org.eclipse.jst.jsp.core.jspsource"> - </content-type> - <content-type - contentTypeId="org.eclipse.jst.jsp.core.jspfragmentsource"> - </content-type> - </tagRegistry> - </extension> - <extension - point="org.eclipse.jst.jsf.core.viewhandler"> - <viewhandler - class="org.eclipse.jst.jsf.designtime.internal.view.DefaultDTViewHandler" - id="org.eclipse.jst.jsf.designtime.view.jspviewhandler"> - </viewhandler> - </extension> - <extension - point="org.eclipse.jst.jsf.common.contextSymbolFactory"> - <contextSymbolFactory - factory="org.eclipse.jst.jsf.designtime.internal.symbols.StaticJavaTypeSymbolFactory" - factoryId="org.eclipse.jst.jsf.core.staticJavaTypeSymbol"> - </contextSymbolFactory> - </extension> - <extension - point="org.eclipse.jst.jsf.common.contextSymbolFactory"> - <contextSymbolFactory - factory="org.eclipse.jst.jsf.designtime.internal.symbols.ValueExpressionSymbolFactory" - factoryId="org.eclipse.jst.jsf.core.valueExpressionSymbolFactory"> - </contextSymbolFactory> - </extension> - <extension - point="org.eclipse.jst.jsf.core.customViewMapper"> - <customViewMapper - class="org.eclipse.jst.jsf.designtime.internal.view.mapping.mappers.ValueHolderAttributeMapper" - id="valueHolderAttributeMapper"> - </customViewMapper> - </extension> - - <!-- - ****************************************** - * Library Provider Framework Integration * - ****************************************** - --> - - <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders"> - <provider id="jsf-user-library-provider" extends="wtp-user-library-provider"> - <param name="validator" value="org.eclipse.jst.jsf.core.internal.project.facet.JSFLibraryValidator"/> - <param name="validator.param.0" value="javax.faces.FactoryFinder"/> - <enablement> - <with variable="requestingProjectFacet"> - <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf" forcePluginActivation="true"/> - </with> - </enablement> - </provider> - </extension> - - <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders"> - <provider id="jsf-no-op-library-provider" extends="no-op-library-provider"> - <param name="message" value="%noOpLibraryProviderMessage"/> - <param name="warning" value="%noOpLibraryProviderWarning"/> - <enablement> - <with variable="requestingProjectFacet"> - <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf" forcePluginActivation="true"/> - </with> - </enablement> - </provider> - </extension> - - <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders"> - <provider id="legacy-jsf-library-provider" extends="legacy-library-provider" hidden="true"> - <action type="UNINSTALL"> - <operation class="org.eclipse.jst.jsf.core.internal.project.facet.LegacyJSFLibraryProviderUninstallOperation"/> - </action> - </provider> - </extension> - - <extension point="org.eclipse.jst.common.project.facet.core.legacyLibraryProviderDetectors"> - <detector class="org.eclipse.jst.jsf.core.internal.project.facet.LegacyJSFLibraryProviderDetector"/> - </extension> - - <!-- JSF 2.1 Downloadable library provider --> - <extension point="org.eclipse.jst.common.project.facet.core.downloadableLibraries"> - <import-definitions url="http://www.eclipse.org/webtools/jsf/jsf-library/jsf-2.1-downloadable-libraries.xml"> - <enablement> - <with variable="requestingProjectFacet"> - <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:2.1" forcePluginActivation="true"/> - </with> - </enablement> - </import-definitions> - </extension> - - <!-- JSF 2.0 Downloadable library provider --> - <extension point="org.eclipse.jst.common.project.facet.core.downloadableLibraries"> - <import-definitions url="http://www.eclipse.org/webtools/jsf/jsf-library/jsf-2.0-downloadable-libraries.xml"> - <enablement> - <with variable="requestingProjectFacet"> - <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:2.0" forcePluginActivation="true"/> - </with> - </enablement> - </import-definitions> - </extension> - - <!-- JSF 1.2 Downloadable library provider --> - <extension point="org.eclipse.jst.common.project.facet.core.downloadableLibraries"> - <import-definitions url="http://www.eclipse.org/webtools/jsf/jsf-library/jsf-1.2-downloadable-libraries.xml"> - <enablement> - <with variable="requestingProjectFacet"> - <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:1.2" forcePluginActivation="true"/> - </with> - </enablement> - </import-definitions> - </extension> - - <!-- JSF 1.1 Downloadable library provider --> - <extension point="org.eclipse.jst.common.project.facet.core.downloadableLibraries"> - <import-definitions url="http://www.eclipse.org/webtools/jsf/jsf-library/jsf-1.1-downloadable-libraries.xml"> - <enablement> - <with variable="requestingProjectFacet"> - <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:1.1" forcePluginActivation="true"/> - </with> - </enablement> - </import-definitions> - </extension> - - <!-- Facelet Content Types --> - <extension - point="org.eclipse.core.contenttype.contentTypes"> - <content-type - base-type="org.eclipse.wst.html.core.htmlsource" - file-extensions="xhtml" - id="jsf.facelet" - name="%Facelet.name" - priority="high"> - <describer - class="org.eclipse.jst.jsf.core.internal.contenttype.ContentDescriberForFacelet"> - </describer> - </content-type> - <content-type - base-type="jsf.facelet" - file-extensions="xhtml" - id="jsf.facelet.composite" - name="%FaceletComposite.name" - priority="high"> - <describer - class="org.eclipse.jst.jsf.core.internal.contenttype.ContentDescriberForFaceletCompositeComponent"> - </describer> - </content-type> - </extension> - -</plugin> +<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<plugin>
+ <extension-point id="jsfLibraries" name="%extension-point.name.0" schema="schema/jsfLibraries.exsd"/>
+ <extension-point id="pluginProvidedJsfLibraries" name="%extension-point.name.1" schema="schema/pluginProvidedJsfLibraries.exsd"/>
+ <extension-point id="variableresolver" name="%extension-point.name.8" schema="schema/variableresolver.exsd"/>
+ <extension-point id="propertyresolver" name="%extension-point.name.2" schema="schema/propertyresolver.exsd"/>
+ <extension-point id="methodresolver" name="%extension-point.name.3" schema="schema/methodresolver.exsd"/>
+ <extension-point id="externalcontext" name="%extension-point.name.4" schema="schema/externalcontext.exsd"/>
+ <extension-point id="AttributeValueRuntimeTypes" name="%extension-point.name.9" schema="schema/AttributeValueRuntimeTypes.exsd"/>
+ <extension-point id="MetaDataEnabledFeatures" name="%extension-point.name.5" schema="schema/MetaDataEnabledFeatures.exsd"/>
+ <extension-point id="tagregistry" name="%extension-point.name.10" schema="schema/tagregistry.exsd"/>
+ <extension-point id="viewhandler" name="%extension-point.name.6" schema="schema/viewhandler.exsd"/>
+ <extension-point id="customViewMapper" name="%extension-point.name.7" schema="schema/customViewMapper.exsd"/>
+ <extension-point id="jsfFacetConfiguration" name="%extension-point.name.11" schema="schema/jsfFacetConfiguration.exsd"/>
+ <extension-point id="symbolContextResolverFactory" name="%extension-point.name.12" schema="schema/symbolContextResolverFactory.exsd"/>
+ <extension-point id="tagRegistryFactory" name="%extension-point.name.13" schema="schema/tagRegistryFactory.exsd"/>
+ <extension-point id="jsfAppConfigLocatorProviderFactory" name="%extension-point.name.14" schema="schema/jsfAppConfigLocatorProviderFactory.exsd"/>
+ <extension-point id="jsfAppConfigManagerFactory" name="%extension-point.name.15" schema="schema/jsfAppConfigManagerFactory.exsd"/>
+ <extension point="org.eclipse.emf.ecore.generated_package">
+ <package
+ uri = "http://org.eclipse.jst.jsf.core/constraints.ecore"
+ class = "org.eclipse.jst.jsf.validation.internal.constraints.ConstraintsPackage"
+ genModel = "model/constraints.genmodel" />
+ <package
+ uri = "http://org.eclipse.jsf.pagedesigner/paletteInfos.ecore"
+ class = "org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfosPackage"
+ genModel = "model/paletteInfos.genmodel" />
+ <package
+ uri = "http://org.eclipse.jst.jsf.core/componentMapping.ecore"
+ class = "org.eclipse.jst.jsf.designtime.internal.view.mapping.viewmapping.ComponentMappingPackage"
+ genModel = "model/componentMapping.genmodel" />
+ </extension>
+ <!-- JSF Project Facets -->
+ <extension
+ id="org.eclipse.jst.jsf.project.facet"
+ name="%plugin.facet.extension.name"
+ point="org.eclipse.wst.common.project.facet.core.facets">
+
+ <project-facet id="jst.jsf">
+ <label>%plugin.facet.name</label>
+ <description>%plugin.facet.description</description>
+ </project-facet>
+
+ <project-facet-version facet="jst.jsf" version="1.1">
+ <constraint>
+ <and>
+ <requires facet="jst.web" version="[2.3"/>
+ </and>
+ </constraint>
+ </project-facet-version>
+
+ <project-facet-version facet="jst.jsf" version="1.2">
+ <constraint>
+ <and>
+ <requires facet="jst.web" version="[2.5"/>
+ </and>
+ </constraint>
+ </project-facet-version>
+
+ <project-facet-version facet="jst.jsf" version="2.0">
+ <constraint>
+ <and>
+ <requires facet="jst.web" version="[2.5"/>
+ </and>
+ </constraint>
+ </project-facet-version>
+
+ <project-facet-version facet="jst.jsf" version="2.1">
+ <constraint>
+ <and>
+ <requires facet="jst.web" version="[2.5"/>
+ </and>
+ </constraint>
+ </project-facet-version>
+ <project-facet-version
+ facet="jst.jsf"
+ version="2.2">
+ <constraint>
+ <and>
+ <requires
+ facet="jst.web"
+ version="[2.5">
+ </requires>
+ </and>
+ </constraint>
+ </project-facet-version>
+
+ <action id="jst.jsf.v11.install" facet="jst.jsf" type="INSTALL" version="1.1">
+ <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDelegate"/>
+ <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider"/>
+ </action>
+
+ <action id="jst.jsf.v11.uninstall" facet="jst.jsf" type="UNINSTALL" version="1.1" >
+ <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallConfig$Factory"/>
+ <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallDelegate"/>
+ </action>
+
+ <action id="jst.jsf.v12.install" facet="jst.jsf" type="INSTALL" version="1.2">
+ <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDelegate"/>
+ <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider"/>
+ </action>
+
+ <action id="jst.jsf.v12.uninstall" facet="jst.jsf" version="1.2" type="UNINSTALL">
+ <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallConfig$Factory"/>
+ <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallDelegate"/>
+ </action>
+
+ <action id="jst.jsf.v20.install" facet="jst.jsf" type="INSTALL" version="2.0">
+ <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDelegate"/>
+ <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider"/>
+ </action>
+
+ <action id="jst.jsf.v20.uninstall" facet="jst.jsf" version="2.0" type="UNINSTALL">
+ <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallConfig$Factory"/>
+ <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallDelegate"/>
+ </action>
+
+ <action id="jst.jsf.v21.install" facet="jst.jsf" type="INSTALL" version="2.1">
+ <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDelegate"/>
+ <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider"/>
+ </action>
+ <action
+ facet="jst.jsf"
+ id="jst.jsf.v22.install"
+ type="INSTALL"
+ version="2.2">
+ <delegate
+ class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDelegate">
+ </delegate>
+ <config-factory
+ class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider">
+ </config-factory>
+ </action>
+
+ <action id="jst.jsf.v21.uninstall" facet="jst.jsf" version="2.1" type="UNINSTALL">
+ <config-factory class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallConfig$Factory"/>
+ <delegate class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallDelegate"/>
+ </action>
+ <action
+ facet="jst.jsf"
+ id="jst.jsf.v22.uninstall"
+ type="UNINSTALL"
+ version="2.2">
+ <config-factory
+ class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallConfig$Factory">
+ </config-factory>
+ <delegate
+ class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetUninstallDelegate">
+ </delegate>
+ </action>
+
+ </extension>
+
+ <extension
+ point="org.eclipse.wst.common.project.facet.core.listeners">
+ <listener
+ class="org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetPrimaryRuntimeChangedListener"
+ eventTypes="PRIMARY_RUNTIME_CHANGED">
+ </listener>
+ </extension>
+
+ <extension
+ point="org.eclipse.wst.common.project.facet.core.presets">
+ <static-preset
+ id="preset.jst.jsf.v1_1" extends="default.configuration">
+ <label>%JSFv11Project</label>
+ <facet id="jst.java" version="1.4" />
+ <facet id="jst.web" version="2.4"/>
+ <facet id="jst.jsf" version="1.1" />
+ <description>%JSFv11PresetDesc</description>
+ </static-preset>
+ <static-preset
+ id="preset.jst.jsf.v1_2" extends="default.configuration">
+ <label>%JSFv12Project</label>
+ <facet id="jst.java" version="1.5" />
+ <facet id="jst.web" version="2.5"/>
+ <facet id="jst.jsf" version="1.2" />
+ <description>
+ %JSFv12PresetDesc
+ </description>
+ </static-preset>
+ <static-preset
+ id="preset.jst.jsf.v2_0" extends="default.configuration">
+ <label>
+ %JSFv20Project
+ </label>
+ <facet
+ id="jst.java"
+ version="1.6">
+ </facet>
+ <facet
+ id="jst.web"
+ version="3.0">
+ </facet>
+ <facet
+ id="jst.jsf"
+ version="2.0">
+ </facet>
+ <description>
+ %JSFv20PresetDesc
+ </description>
+ </static-preset>
+ <static-preset
+ id="preset.jst.jsf.v2_1" extends="default.configuration">
+ <label>
+ %JSFv21Project
+ </label>
+ <facet
+ id="jst.java"
+ version="1.6">
+ </facet>
+ <facet
+ id="jst.web"
+ version="3.0">
+ </facet>
+ <facet
+ id="jst.jsf"
+ version="2.1">
+ </facet>
+ <description>
+ %JSFv21PresetDesc
+ </description>
+ </static-preset>
+ <static-preset
+ extends="default.configuration"
+ id="preset.jst.jsf.v2_2">
+ <label>
+ %JSFv22Project
+ </label>
+ <facet
+ id="jst.java"
+ version="1.6">
+ </facet>
+ <facet
+ id="jst.web"
+ version="3.0">
+ </facet>
+ <facet
+ id="jst.jsf"
+ version="2.2">
+ </facet>
+ <description>
+ %JSFv22PresetDesc
+ </description>
+ </static-preset>
+ </extension>
+
+ <extension point="org.eclipse.wst.common.project.facet.core.runtimes">
+ <supported>
+ <runtime-component any="true"/>
+ <facet id="jst.jsf" version="1.1,1.2,2.0,2.1,2.2"/>
+ </supported>
+ </extension>
+
+ <extension
+ name="JSF JSP File URL"
+ point="org.eclipse.jst.j2ee.web.fileURL">
+ <fileURL id="jsfPage"><run class="org.eclipse.jst.jsf.core.internal.launch.JSFFileURL"/></fileURL>
+ </extension>
+
+ <extension
+ point="org.eclipse.jst.jsf.common.symbolSourceProvider">
+ <symbolSourceId factory="org.eclipse.jst.jsf.designtime.internal.symbols.JSPTagVariableSymbolSourceProvider"/>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.common.contextSymbolFactory">
+ <contextSymbolFactory
+ factory="org.eclipse.jst.jsf.designtime.internal.jsp.JSPDefaultSymbolFactory"
+ factoryId="org.eclipse.jst.jsf.designtime.core.loadBundle"/>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.core.variableresolver">
+ <variableresolver
+ class="org.eclipse.jst.jsf.designtime.internal.symbols.ConfigBasedDTVariableResolver"
+ id="org.eclipse.jst.jsf.core.variableresolver.default.decorative"/>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.core.variableresolver">
+ <variableresolver
+ class="org.eclipse.jst.jsf.designtime.el.DefaultDTVariableResolver"
+ id="org.eclipse.jst.jsf.core.variableresolver.default"/>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.core.propertyresolver">
+ <propertyresolver
+ class="org.eclipse.jst.jsf.designtime.el.DefaultDTPropertyResolver"
+ id="org.eclipse.jst.jsf.core.propertyresolver.default"/>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.core.propertyresolver">
+ <propertyresolver
+ class="org.eclipse.jst.jsf.designtime.internal.symbols.ConfigBasedDTPropertyResolver"
+ id="org.eclipse.jst.jsf.core.propertyresolver.default.decorative"
+ instancePerProject="true">
+ </propertyresolver>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.core.methodresolver">
+ <methodresolver
+ class="org.eclipse.jst.jsf.designtime.el.DefaultDTMethodResolver"
+ id="org.eclipse.jst.jsf.core.methodresolver.default"/>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.core.externalcontext">
+ <externalcontext
+ class="org.eclipse.jst.jsf.designtime.context.DefaultDTExternalContextFactory"
+ id="org.eclipse.jst.jsf.core.externalcontext.default"/>
+ </extension>
+
+ <extension
+ point="org.eclipse.jst.jsf.core.AttributeValueRuntimeTypes">
+
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.metadataprocessors.AbstractRootTypeDescriptor"
+ id="attributevalues.BaseType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.StringType"
+ id="attributevalues.StringType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.AnyStringType"
+ id="attributevalues.AnyStringType">
+ </attributeValueRuntimeType>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.BooleanType"
+ id="attributevalues.BooleanType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.LongType"
+ id="attributevalues.LongType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.IntegerType"
+ id="attributevalues.IntegerType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.DoubleType"
+ id="attributevalues.DoubleType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.JavaClassType"
+ id="attributevalues.JavaClassType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.MethodBindingType"
+ id="attributevalues.MethodBindingType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ActionType"
+ id="attributevalues.ActionType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ValueBindingType"
+ id="attributevalues.ValueBindingType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ValueType"
+ id="attributevalues.ValueType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.FacesConfigIdentifierType"
+ id="attributevalues.FacesConfigIdentifierType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.FacesConfigValidatorIDType"
+ id="attributevalues.FacesConfigValidatorIDType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.FacesConfigConverterIDType"
+ id="attributevalues.FacesConfigConverterIDType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ComponentBindingType"
+ id="attributevalues.ComponentBindingType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ComponentIDType"
+ id="attributevalues.ComponentIDType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.LengthType"
+ id="attributevalues.LengthType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ColorType"
+ id="attributevalues.ColorType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ResourceBundleType"
+ id="attributevalues.ResourceBundleType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.LanguageCodeType"
+ id="attributevalues.LanguageCodeType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.RelativePathType"
+ id="attributevalues.RelativePathType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.WebPathType"
+ id="attributevalues.WebPathType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.CurrencyCodeType"
+ id="attributevalues.CurrencyCodeType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.LocaleType"
+ id="attributevalues.LocaleType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.TimeZoneType"
+ id="attributevalues.TimeZoneType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.DateTimePatternType"
+ id="attributevalues.DateTimePatternType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.NumberPatternType"
+ id="attributevalues.NumberPatternType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ScriptType"
+ id="attributevalues.ScriptType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.CharacterType"
+ id="attributevalues.CharacterType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.LinkType"
+ id="attributevalues.LinkType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.ContentType"
+ id="attributevalues.ContentType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.URIType"
+ id="attributevalues.URIType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.CSSClassType"
+ id="attributevalues.CSSClassType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.CSSIdType"
+ id="attributevalues.CSSIdType"/>
+ <attributeValueRuntimeType
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.CSSStyleType"
+ id="attributevalues.CSSStyleType"/>
+ </extension>
+
+ <extension
+ point="org.eclipse.jst.jsf.core.MetaDataEnabledFeatures">
+ <MetaDataEnabledFeature
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.FacesConfigValidatorIDFeatures"
+ typeid="org.eclipse.jst.jsf.core.attributevalues.FacesConfigValidatorIDType"/>
+ <MetaDataEnabledFeature
+ class="org.eclipse.jst.jsf.taglibprocessing.attributevalues.FacesConfigConverterIDFeatures"
+ typeid="org.eclipse.jst.jsf.core.attributevalues.FacesConfigConverterIDType"/>
+ </extension>
+
+ <extension
+ point="org.eclipse.jst.jsf.common.symbolSourceProvider">
+ <symbolSourceId
+ factory="org.eclipse.jst.jsf.designtime.internal.symbols.ResourceBundleSymbolSourceProvider">
+ </symbolSourceId>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.common.domainSourceModelTypes">
+ <domainSourceModelTypes
+ domainId="TagLibraryDomain"
+ domainSourceModelTypeId="TaglibContentModelHandler"
+ locator="org.eclipse.jst.jsf.core.metadata.internal.TaglibMetaDataLocator"
+ ordinal="5">
+ </domainSourceModelTypes>
+ </extension>
+
+ <extension
+ point="org.eclipse.jst.jsf.common.domainSourceModelTypeTranslators">
+ <domainSourceModelTypeTranslator
+ domainSourceModelTypeId="TaglibContentModelHandler"
+ translatorClass="org.eclipse.jst.jsf.core.metadata.internal.HTMLContentModelMetaDataTranslator">
+ </domainSourceModelTypeTranslator>
+ <domainSourceModelTypeTranslator
+ domainSourceModelTypeId="TaglibContentModelHandler"
+ translatorClass="org.eclipse.jst.jsf.core.metadata.internal.JSPContentModelMetaDataTranslator">
+ </domainSourceModelTypeTranslator>
+ <domainSourceModelTypeTranslator
+ domainSourceModelTypeId="TaglibContentModelHandler"
+ translatorClass="org.eclipse.jst.jsf.core.metadata.internal.TaglibMetaDataTLDTranslator">
+ </domainSourceModelTypeTranslator>
+ </extension>
+
+ <extension point="org.eclipse.jdt.core.classpathContainerInitializer">
+ <classpathContainerInitializer
+ class="org.eclipse.jst.jsf.core.internal.JSFLibrariesContainerInitializer"
+ id="org.eclipse.jst.jsf.core.internal.jsflibrarycontainer"/>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.core.tagregistry">
+ <tagRegistry
+ class="org.eclipse.jst.jsf.designtime.internal.view.model.jsp.registry.TLDRegistryManager$MyRegistryFactory"
+ description="%JSP_TAG_REGISTRY_DESCRIPTION"
+ id="default.jsp">
+ <content-type
+ contentTypeId="org.eclipse.jst.jsp.core.jspsource">
+ </content-type>
+ <content-type
+ contentTypeId="org.eclipse.jst.jsp.core.jspfragmentsource">
+ </content-type>
+ </tagRegistry>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.core.viewhandler">
+ <viewhandler
+ class="org.eclipse.jst.jsf.designtime.internal.view.DefaultDTViewHandler"
+ id="org.eclipse.jst.jsf.designtime.view.jspviewhandler">
+ </viewhandler>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.common.contextSymbolFactory">
+ <contextSymbolFactory
+ factory="org.eclipse.jst.jsf.designtime.internal.symbols.StaticJavaTypeSymbolFactory"
+ factoryId="org.eclipse.jst.jsf.core.staticJavaTypeSymbol">
+ </contextSymbolFactory>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.common.contextSymbolFactory">
+ <contextSymbolFactory
+ factory="org.eclipse.jst.jsf.designtime.internal.symbols.ValueExpressionSymbolFactory"
+ factoryId="org.eclipse.jst.jsf.core.valueExpressionSymbolFactory">
+ </contextSymbolFactory>
+ </extension>
+ <extension
+ point="org.eclipse.jst.jsf.core.customViewMapper">
+ <customViewMapper
+ class="org.eclipse.jst.jsf.designtime.internal.view.mapping.mappers.ValueHolderAttributeMapper"
+ id="valueHolderAttributeMapper">
+ </customViewMapper>
+ </extension>
+
+ <!--
+ ******************************************
+ * Library Provider Framework Integration *
+ ******************************************
+ -->
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="jsf-user-library-provider" extends="wtp-user-library-provider">
+ <param name="validator" value="org.eclipse.jst.jsf.core.internal.project.facet.JSFLibraryValidator"/>
+ <param name="validator.param.0" value="javax.faces.FactoryFinder"/>
+ <enablement>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf" forcePluginActivation="true"/>
+ </with>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="jsf-no-op-library-provider" extends="no-op-library-provider">
+ <param name="message" value="%noOpLibraryProviderMessage"/>
+ <param name="warning" value="%noOpLibraryProviderWarning"/>
+ <enablement>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf" forcePluginActivation="true"/>
+ </with>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="legacy-jsf-library-provider" extends="legacy-library-provider" hidden="true">
+ <action type="UNINSTALL">
+ <operation class="org.eclipse.jst.jsf.core.internal.project.facet.LegacyJSFLibraryProviderUninstallOperation"/>
+ </action>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.legacyLibraryProviderDetectors">
+ <detector class="org.eclipse.jst.jsf.core.internal.project.facet.LegacyJSFLibraryProviderDetector"/>
+ </extension>
+ <extension
+ point="org.eclipse.jst.common.project.facet.core.downloadableLibraries">
+ <import-definitions
+ url="http://www.eclipse.org/webtools/jsf/jsf-library/jsf-2.2-downloadable-libraries.xml">
+ <enablement>
+ <with
+ variable="requestingProjectFacet">
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.wst.common.project.facet.core.projectFacet"
+ value="jst.jsf:2.2">
+ </test>
+ </with>
+ </enablement>
+ </import-definitions>
+ </extension>
+
+ <!-- JSF 2.1 Downloadable library provider -->
+ <extension point="org.eclipse.jst.common.project.facet.core.downloadableLibraries">
+ <import-definitions url="http://www.eclipse.org/webtools/jsf/jsf-library/jsf-2.1-downloadable-libraries.xml">
+ <enablement>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:2.1" forcePluginActivation="true"/>
+ </with>
+ </enablement>
+ </import-definitions>
+ </extension>
+
+ <!-- JSF 2.0 Downloadable library provider -->
+ <extension point="org.eclipse.jst.common.project.facet.core.downloadableLibraries">
+ <import-definitions url="http://www.eclipse.org/webtools/jsf/jsf-library/jsf-2.0-downloadable-libraries.xml">
+ <enablement>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:2.0" forcePluginActivation="true"/>
+ </with>
+ </enablement>
+ </import-definitions>
+ </extension>
+
+ <!-- JSF 1.2 Downloadable library provider -->
+ <extension point="org.eclipse.jst.common.project.facet.core.downloadableLibraries">
+ <import-definitions url="http://www.eclipse.org/webtools/jsf/jsf-library/jsf-1.2-downloadable-libraries.xml">
+ <enablement>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:1.2" forcePluginActivation="true"/>
+ </with>
+ </enablement>
+ </import-definitions>
+ </extension>
+
+ <!-- JSF 1.1 Downloadable library provider -->
+ <extension point="org.eclipse.jst.common.project.facet.core.downloadableLibraries">
+ <import-definitions url="http://www.eclipse.org/webtools/jsf/jsf-library/jsf-1.1-downloadable-libraries.xml">
+ <enablement>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:1.1" forcePluginActivation="true"/>
+ </with>
+ </enablement>
+ </import-definitions>
+ </extension>
+
+ <!-- Facelet Content Types -->
+ <extension
+ point="org.eclipse.core.contenttype.contentTypes">
+ <content-type
+ base-type="org.eclipse.wst.html.core.htmlsource"
+ file-extensions="xhtml"
+ id="jsf.facelet"
+ name="%Facelet.name"
+ priority="high">
+ <describer
+ class="org.eclipse.jst.jsf.core.internal.contenttype.ContentDescriberForFacelet">
+ </describer>
+ </content-type>
+ <content-type
+ base-type="jsf.facelet"
+ file-extensions="xhtml"
+ id="jsf.facelet.composite"
+ name="%FaceletComposite.name"
+ priority="high">
+ <describer
+ class="org.eclipse.jst.jsf.core.internal.contenttype.ContentDescriberForFaceletCompositeComponent">
+ </describer>
+ </content-type>
+ </extension>
+
+</plugin>
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/IJSFCoreConstants.java b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/IJSFCoreConstants.java index 390ce6c00..6dacd29cb 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/IJSFCoreConstants.java +++ b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/IJSFCoreConstants.java @@ -1,89 +1,98 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.core; - -import org.eclipse.wst.common.project.facet.core.IProjectFacet; - -/** - * JSF Core framework constants - * - * <p><b>Provisional API - subject to change</b></p> - * - * @author cbateman - * - */ -public final class IJSFCoreConstants -{ - /** - * The global id for the JSF facet - * TODO: align with extensioin point through plugin.properties - */ - public static final String JSF_CORE_FACET_ID = "jst.jsf"; //$NON-NLS-1$ - /** - * The facet version for a JSF 1.0 project - * TODO: align with extensioin point through plugin.properties - */ - public final static String FACET_VERSION_1_0 = "1.0"; //$NON-NLS-1$ - /** - * The constant id for a JSF 1.0 project - */ - public final static String JSF_VERSION_1_0 = FACET_VERSION_1_0; - /** - * The facet version for a JSF 1.1 project - * TODO: align with extensioin point through plugin.properties - */ - public final static String FACET_VERSION_1_1 = "1.1"; //$NON-NLS-1$ - /** - * The constant id for a JSF 1.1 project - */ - public final static String JSF_VERSION_1_1 = FACET_VERSION_1_1; - /** - * The facet version for a JSF 1.2 project - * TODO: align with extensioin point through plugin.properties - */ - public final static String FACET_VERSION_1_2 = "1.2";//$NON-NLS-1$ - /** - * The constant id for a JSF 1.2 project - */ - public final static String JSF_VERSION_1_2 = FACET_VERSION_1_2; - - /** - * The facet version for a JSF 2.0 project - */ - public static final String FACET_VERSION_2_0 = "2.0"; //$NON-NLS-1$ - /** - * The version string for a JSF 2.0 project - */ - public static final String JSF_VERSION_2_0 = FACET_VERSION_2_0; - - /** - * The facet version for a JSF 2.1 project - */ - public static final String FACET_VERSION_2_1 = "2.1"; //$NON-NLS-1$ - /** - * The version string for a JSF 2.1 project - */ - public static final String JSF_VERSION_2_1 = FACET_VERSION_2_1; - - /** - * @param facet - * @return true if the facet is a jsf facet. - * - */ - public static boolean isJSFFacet(final IProjectFacet facet) - { - return JSF_CORE_FACET_ID.equals(facet.getId()); - } - private IJSFCoreConstants() - { - // no instantiation - } -} +/*******************************************************************************
+ * Copyright (c) 2001, 2007 Oracle Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Oracle Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.jst.jsf.core;
+
+import org.eclipse.wst.common.project.facet.core.IProjectFacet;
+
+/**
+ * JSF Core framework constants
+ *
+ * <p><b>Provisional API - subject to change</b></p>
+ *
+ * @author cbateman
+ *
+ */
+public final class IJSFCoreConstants
+{
+ /**
+ * The global id for the JSF facet
+ * TODO: align with extensioin point through plugin.properties
+ */
+ public static final String JSF_CORE_FACET_ID = "jst.jsf"; //$NON-NLS-1$
+ /**
+ * The facet version for a JSF 1.0 project
+ * TODO: align with extensioin point through plugin.properties
+ */
+ public final static String FACET_VERSION_1_0 = "1.0"; //$NON-NLS-1$
+ /**
+ * The constant id for a JSF 1.0 project
+ */
+ public final static String JSF_VERSION_1_0 = FACET_VERSION_1_0;
+ /**
+ * The facet version for a JSF 1.1 project
+ * TODO: align with extensioin point through plugin.properties
+ */
+ public final static String FACET_VERSION_1_1 = "1.1"; //$NON-NLS-1$
+ /**
+ * The constant id for a JSF 1.1 project
+ */
+ public final static String JSF_VERSION_1_1 = FACET_VERSION_1_1;
+ /**
+ * The facet version for a JSF 1.2 project
+ * TODO: align with extensioin point through plugin.properties
+ */
+ public final static String FACET_VERSION_1_2 = "1.2";//$NON-NLS-1$
+ /**
+ * The constant id for a JSF 1.2 project
+ */
+ public final static String JSF_VERSION_1_2 = FACET_VERSION_1_2;
+
+ /**
+ * The facet version for a JSF 2.0 project
+ */
+ public static final String FACET_VERSION_2_0 = "2.0"; //$NON-NLS-1$
+ /**
+ * The version string for a JSF 2.0 project
+ */
+ public static final String JSF_VERSION_2_0 = FACET_VERSION_2_0;
+
+ /**
+ * The facet version for a JSF 2.1 project
+ */
+ public static final String FACET_VERSION_2_1 = "2.1"; //$NON-NLS-1$
+ /**
+ * The version string for a JSF 2.1 project
+ */
+ public static final String JSF_VERSION_2_1 = FACET_VERSION_2_1;
+
+ /**
+ * The facet version for a JSF 2.2 project
+ */
+ public static final String FACET_VERSION_2_2 = "2.2"; //$NON-NLS-1$
+ /**
+ * The version string for a JSF 2.2 project
+ */
+ public static final String JSF_VERSION_2_2 = FACET_VERSION_2_2;
+
+ /**
+ * @param facet
+ * @return true if the facet is a jsf facet.
+ *
+ */
+ public static boolean isJSFFacet(final IProjectFacet facet)
+ {
+ return JSF_CORE_FACET_ID.equals(facet.getId());
+ }
+ private IJSFCoreConstants()
+ {
+ // no instantiation
+ }
+}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/JSFVersion.java b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/JSFVersion.java index cb897baa0..29f3a8a0e 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/JSFVersion.java +++ b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/JSFVersion.java @@ -1,159 +1,169 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.core; - -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework; -import org.eclipse.wst.common.project.facet.core.IFacetedProject; -import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; -import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager; - -/** - * @author gekessle - * - */ -public enum JSFVersion { - - /** - * Unknown version support - */ - UNKNOWN, - /** - * Supports JSF Version 1.0 - */ - V1_0, - /** - * Supports JSF Version 1.1 - */ - V1_1, - /** - * Supports JSF Version 1.1 - */ - V1_2, - /** - * Supports JSF Version 2.0 - */ - V2_0, - /** - * Supports JSF Version 2.1 - */ - V2_1; - - // WARNING: you MUST add newer versions to the end; the ordinal value of - // of the version is used in compareTo. - @Override - public String toString() { - switch(this) - { - case V1_0: - return IJSFCoreConstants.JSF_VERSION_1_0; - case V1_1: - return IJSFCoreConstants.JSF_VERSION_1_1; - case V1_2: - return IJSFCoreConstants.JSF_VERSION_1_2; - case V2_0: - return IJSFCoreConstants.JSF_VERSION_2_0; - case V2_1: - return IJSFCoreConstants.JSF_VERSION_2_1; - case UNKNOWN: - return "unknown"; //$NON-NLS-1$ - default: - throw new IllegalStateException("Missing string conversion: "+this.name()); //$NON-NLS-1$ - } - } - - /** - * @param valueAsString - * @return the reverse mapping to an enum from toString() returns - */ - public static JSFVersion valueOfString(String valueAsString) - { - if (IJSFCoreConstants.JSF_VERSION_1_0.equals(valueAsString)) - { - return V1_0; - } - else if (IJSFCoreConstants.JSF_VERSION_1_1.equals(valueAsString)) - { - return V1_1; - } - else if (IJSFCoreConstants.JSF_VERSION_1_2.equals(valueAsString)) - { - return V1_2; - } - else if (IJSFCoreConstants.JSF_VERSION_2_0.equals(valueAsString)) - { - return V2_0; - } - else if (IJSFCoreConstants.JSF_VERSION_2_1.equals(valueAsString)) - { - return V2_1; - } - else if ("unknown".equals(valueAsString)) //$NON-NLS-1$ - { - return UNKNOWN; - } - else - { - return null; - } - } - - /** - * @param facetVersion - * @return the jsf version for the facet version - * @throw IllegalArgumentException if the underlying facet is not a JSF facet. - */ - public static JSFVersion valueOfFacetVersion(final IProjectFacetVersion facetVersion) - { - if (!IJSFCoreConstants.isJSFFacet(facetVersion.getProjectFacet())) - { - throw new IllegalArgumentException("Not a JSF facet: "+facetVersion.getProjectFacet().toString()); //$NON-NLS-1$ - } - - String versionString = facetVersion.getVersionString(); - if (versionString != null) - { - return valueOfString(versionString); - } - return null; - } - - /** - * @param project - * @return the project version of the project. - */ - public static JSFVersion valueOfProject(final IProject project) - { - try - { - if (project != null && FacetedProjectFramework.isFacetedProject(project)) - { - IFacetedProject fProj = ProjectFacetsManager.create(project); - if (fProj != null) - { - IProjectFacetVersion projectFacetVersion = fProj.getProjectFacetVersion( - ProjectFacetsManager.getProjectFacet(IJSFCoreConstants.JSF_CORE_FACET_ID)); - if (projectFacetVersion != null) - { - return valueOfFacetVersion(projectFacetVersion); - } - } - } - } - catch(final CoreException ce) - { - // ignore and fall-through - // TODO: is this worth logging? - } - return null; - } -} +/*******************************************************************************
+ * Copyright (c) 2001, 2007 Oracle Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Oracle Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.jst.jsf.core;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework;
+import org.eclipse.wst.common.project.facet.core.IFacetedProject;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
+
+/**
+ * @author gekessle
+ *
+ */
+public enum JSFVersion {
+
+ /**
+ * Unknown version support
+ */
+ UNKNOWN,
+ /**
+ * Supports JSF Version 1.0
+ */
+ V1_0,
+ /**
+ * Supports JSF Version 1.1
+ */
+ V1_1,
+ /**
+ * Supports JSF Version 1.1
+ */
+ V1_2,
+ /**
+ * Supports JSF Version 2.0
+ */
+ V2_0,
+ /**
+ * Supports JSF Version 2.1
+ */
+ V2_1,
+ /**
+ * Supports JSF Version 2.2
+ */
+ V2_2;
+
+ // WARNING: you MUST add newer versions to the end; the ordinal value of
+ // of the version is used in compareTo.
+ @Override
+ public String toString() {
+ switch(this)
+ {
+ case V1_0:
+ return IJSFCoreConstants.JSF_VERSION_1_0;
+ case V1_1:
+ return IJSFCoreConstants.JSF_VERSION_1_1;
+ case V1_2:
+ return IJSFCoreConstants.JSF_VERSION_1_2;
+ case V2_0:
+ return IJSFCoreConstants.JSF_VERSION_2_0;
+ case V2_1:
+ return IJSFCoreConstants.JSF_VERSION_2_1;
+ case V2_2:
+ return IJSFCoreConstants.JSF_VERSION_2_2;
+ case UNKNOWN:
+ return "unknown"; //$NON-NLS-1$
+ default:
+ throw new IllegalStateException("Missing string conversion: "+this.name()); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @param valueAsString
+ * @return the reverse mapping to an enum from toString() returns
+ */
+ public static JSFVersion valueOfString(String valueAsString)
+ {
+ if (IJSFCoreConstants.JSF_VERSION_1_0.equals(valueAsString))
+ {
+ return V1_0;
+ }
+ else if (IJSFCoreConstants.JSF_VERSION_1_1.equals(valueAsString))
+ {
+ return V1_1;
+ }
+ else if (IJSFCoreConstants.JSF_VERSION_1_2.equals(valueAsString))
+ {
+ return V1_2;
+ }
+ else if (IJSFCoreConstants.JSF_VERSION_2_0.equals(valueAsString))
+ {
+ return V2_0;
+ }
+ else if (IJSFCoreConstants.JSF_VERSION_2_1.equals(valueAsString))
+ {
+ return V2_1;
+ }
+ else if (IJSFCoreConstants.JSF_VERSION_2_2.equals(valueAsString))
+ {
+ return V2_2;
+ }
+ else if ("unknown".equals(valueAsString)) //$NON-NLS-1$
+ {
+ return UNKNOWN;
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ /**
+ * @param facetVersion
+ * @return the jsf version for the facet version
+ * @throw IllegalArgumentException if the underlying facet is not a JSF facet.
+ */
+ public static JSFVersion valueOfFacetVersion(final IProjectFacetVersion facetVersion)
+ {
+ if (!IJSFCoreConstants.isJSFFacet(facetVersion.getProjectFacet()))
+ {
+ throw new IllegalArgumentException("Not a JSF facet: "+facetVersion.getProjectFacet().toString()); //$NON-NLS-1$
+ }
+
+ String versionString = facetVersion.getVersionString();
+ if (versionString != null)
+ {
+ return valueOfString(versionString);
+ }
+ return null;
+ }
+
+ /**
+ * @param project
+ * @return the project version of the project.
+ */
+ public static JSFVersion valueOfProject(final IProject project)
+ {
+ try
+ {
+ if (project != null && FacetedProjectFramework.isFacetedProject(project))
+ {
+ IFacetedProject fProj = ProjectFacetsManager.create(project);
+ if (fProj != null)
+ {
+ IProjectFacetVersion projectFacetVersion = fProj.getProjectFacetVersion(
+ ProjectFacetsManager.getProjectFacet(IJSFCoreConstants.JSF_CORE_FACET_ID));
+ if (projectFacetVersion != null)
+ {
+ return valueOfFacetVersion(projectFacetVersion);
+ }
+ }
+ }
+ }
+ catch(final CoreException ce)
+ {
+ // ignore and fall-through
+ // TODO: is this worth logging?
+ }
+ return null;
+ }
+}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/project/facet/JSFUtilFactory.java b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/project/facet/JSFUtilFactory.java index ccd406d01..fe7cb5821 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/project/facet/JSFUtilFactory.java +++ b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/project/facet/JSFUtilFactory.java @@ -1,70 +1,72 @@ -package org.eclipse.jst.jsf.core.internal.project.facet; - -import org.eclipse.core.resources.IProject; -import org.eclipse.jst.j2ee.model.IModelProvider; -import org.eclipse.jst.j2ee.model.ModelProviderManager; -import org.eclipse.jst.jsf.core.JSFVersion; -import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; - -/** - * Creates a new JSFUtil for a particular JSF project version. - * - * @author cbateman - * - */ -public class JSFUtilFactory -{ - /** - * @param project - * @return the jsf version of the project if it is valid JSF faceted - * project or null otherwise. - */ - public JSFUtils create(final IProject project) - { - final JSFVersion jsfVersion = JSFVersion.valueOfProject(project); - if (jsfVersion != null) - { - return create(jsfVersion, ModelProviderManager.getModelProvider(project)); - } - return null; - } - /** - * @param version - * @param modelProvider - * @return the JSF utils object for the version or null if none. - * @throw {@link IllegalArgumentException} if version is not related - * to a JSF facet. - */ - public JSFUtils create(final IProjectFacetVersion version, final IModelProvider modelProvider) - { - final JSFVersion jsfVersion = JSFVersion.valueOfFacetVersion(version); - if (jsfVersion != null) - { - return create(jsfVersion, modelProvider); - } - return null; - } - - /** - * @param version - * @param modelProvider - * @return the JSF utils object for the version or null if none. - */ - public JSFUtils create(final JSFVersion version, final IModelProvider modelProvider) - { - switch (version) - { - case V1_0: - case V1_1: - return new JSFUtils11(modelProvider); - case V1_2: - return new JSFUtils12(modelProvider); - case V2_0: - return new JSFUtils20(modelProvider); - case V2_1: - return new JSFUtils21(modelProvider); - default: - throw new IllegalArgumentException("Unknown version: "+version); //$NON-NLS-1$ - } - } -} +package org.eclipse.jst.jsf.core.internal.project.facet;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jst.j2ee.model.IModelProvider;
+import org.eclipse.jst.j2ee.model.ModelProviderManager;
+import org.eclipse.jst.jsf.core.JSFVersion;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+
+/**
+ * Creates a new JSFUtil for a particular JSF project version.
+ *
+ * @author cbateman
+ *
+ */
+public class JSFUtilFactory
+{
+ /**
+ * @param project
+ * @return the jsf version of the project if it is valid JSF faceted
+ * project or null otherwise.
+ */
+ public JSFUtils create(final IProject project)
+ {
+ final JSFVersion jsfVersion = JSFVersion.valueOfProject(project);
+ if (jsfVersion != null)
+ {
+ return create(jsfVersion, ModelProviderManager.getModelProvider(project));
+ }
+ return null;
+ }
+ /**
+ * @param version
+ * @param modelProvider
+ * @return the JSF utils object for the version or null if none.
+ * @throw {@link IllegalArgumentException} if version is not related
+ * to a JSF facet.
+ */
+ public JSFUtils create(final IProjectFacetVersion version, final IModelProvider modelProvider)
+ {
+ final JSFVersion jsfVersion = JSFVersion.valueOfFacetVersion(version);
+ if (jsfVersion != null)
+ {
+ return create(jsfVersion, modelProvider);
+ }
+ return null;
+ }
+
+ /**
+ * @param version
+ * @param modelProvider
+ * @return the JSF utils object for the version or null if none.
+ */
+ public JSFUtils create(final JSFVersion version, final IModelProvider modelProvider)
+ {
+ switch (version)
+ {
+ case V1_0:
+ case V1_1:
+ return new JSFUtils11(modelProvider);
+ case V1_2:
+ return new JSFUtils12(modelProvider);
+ case V2_0:
+ return new JSFUtils20(modelProvider);
+ case V2_1:
+ return new JSFUtils21(modelProvider);
+ case V2_2:
+ return new JSFUtils22(modelProvider);
+ default:
+ throw new IllegalArgumentException("Unknown version: "+version); //$NON-NLS-1$
+ }
+ }
+}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/project/facet/JSFUtils22.java b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/project/facet/JSFUtils22.java new file mode 100644 index 000000000..950d59880 --- /dev/null +++ b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/internal/project/facet/JSFUtils22.java @@ -0,0 +1,68 @@ +package org.eclipse.jst.jsf.core.internal.project.facet;
+
+import java.io.PrintWriter;
+
+import org.eclipse.jst.j2ee.model.IModelProvider;
+import org.eclipse.jst.jsf.core.JSFVersion;
+
+/**
+ * JSF Utils instance for JSF 2.2.
+ *
+ * @author ian.trimble@oracle.com
+ */
+/* package: use JSFUtilFactory */class JSFUtils22 extends JSFUtils21
+{
+
+ /**
+ * @param modelProvider
+ */
+ protected JSFUtils22(final IModelProvider modelProvider)
+ {
+ super(JSFVersion.V2_2, modelProvider);
+ }
+
+ /**
+ * @param jsfVersion
+ * @param modelProvider
+ */
+ protected JSFUtils22(final JSFVersion jsfVersion, final IModelProvider modelProvider)
+ {
+ super(jsfVersion, modelProvider);
+ if (jsfVersion.compareTo(JSFVersion.V2_2) < 0)
+ {
+ throw new IllegalArgumentException(
+ "JSFVersion must be at least 2.2"); //$NON-NLS-1$
+ }
+ }
+
+ @Override
+ public void doVersionSpecificConfigFile(PrintWriter pw)
+ {
+ final String QUOTE = new String(new char[] {'"'});
+ final String schemaVersionString = getVersion().toString().replaceAll("\\.", "_"); //$NON-NLS-1$//$NON-NLS-2$
+ pw.write("<?xml version=" + //$NON-NLS-1$
+ QUOTE + "1.0" + QUOTE + //$NON-NLS-1$
+ " encoding=" + //$NON-NLS-1$
+ QUOTE + "UTF-8" + QUOTE + //$NON-NLS-1$
+ "?>\n"); //$NON-NLS-1$
+ pw.write("<faces-config\n"); //$NON-NLS-1$
+ pw.write(" xmlns=" + //$NON-NLS-1$
+ QUOTE + "http://xmlns.jcp.org/xml/ns/javaee" + QUOTE + //$NON-NLS-1$
+ "\n"); //$NON-NLS-1$
+ pw.write(" xmlns:xsi=" + //$NON-NLS-1$
+ QUOTE + "http://www.w3.org/2001/XMLSchema-instance" + QUOTE + //$NON-NLS-1$
+ "\n"); //$NON-NLS-1$
+ pw.write(" xsi:schemaLocation=" + //$NON-NLS-1$
+ QUOTE +
+ String.format(
+ "http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_%s.xsd", //$NON-NLS-1$
+ schemaVersionString) +
+ QUOTE +
+ "\n"); //$NON-NLS-1$
+ pw.write(" version=" + //$NON-NLS-1$
+ QUOTE + getVersion().toString() + QUOTE +
+ ">\n\n"); //$NON-NLS-1$
+ pw.write("</faces-config>\n"); //$NON-NLS-1$
+ }
+
+}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/plugin.xml b/jsf/plugins/org.eclipse.jst.jsf.ui/plugin.xml index de2305113..1e33adc85 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.ui/plugin.xml +++ b/jsf/plugins/org.eclipse.jst.jsf.ui/plugin.xml @@ -68,6 +68,12 @@ class="org.eclipse.jst.jsf.ui.internal.project.facet.JSFFacetInstallPage"> </page> </wizard-pages> + <wizard-pages + action="jst.jsf.v22.install"> + <page + class="org.eclipse.jst.jsf.ui.internal.project.facet.JSFFacetInstallPage"> + </page> + </wizard-pages> </extension> <extension point="org.eclipse.wst.sse.ui.editorConfiguration"> |