diff options
author | kkomissarchik | 2006-07-06 23:49:29 +0000 |
---|---|---|
committer | kkomissarchik | 2006-07-06 23:49:29 +0000 |
commit | 35705a4c74170e794d42ae624bc803e9036de876 (patch) | |
tree | 2bda12c3bb474f159a8eefcb40559b822a38e8ef | |
parent | 6486544da0b5eb9b68ee03d0c409be79620ed7d5 (diff) | |
download | webtools.common.fproj-35705a4c74170e794d42ae624bc803e9036de876.tar.gz webtools.common.fproj-35705a4c74170e794d42ae624bc803e9036de876.tar.xz webtools.common.fproj-35705a4c74170e794d42ae624bc803e9036de876.zip |
138701 | Facet extension point documentation is incomplete
5 files changed, 121 insertions, 6 deletions
diff --git a/plugins/org.eclipse.wst.common.project.facet.core/schemas/defaultFacets.exsd b/plugins/org.eclipse.wst.common.project.facet.core/schemas/defaultFacets.exsd index 7bd87b4..8e74c94 100644 --- a/plugins/org.eclipse.wst.common.project.facet.core/schemas/defaultFacets.exsd +++ b/plugins/org.eclipse.wst.common.project.facet.core/schemas/defaultFacets.exsd @@ -115,7 +115,29 @@ <meta.section type="examples"/> </appInfo> <documentation> - + <p>The following example declares facet1 (version 1.3) and facet2 (version 5.0) as default facets for runtime component MyRuntimeComponent.</p> + +<pre> +<extension point="org.eclipse.wst.common.project.facet.core.defaultFacets"> + <default-facets> + <runtime-component id="MyRuntimeComponent"/> + <facet id="facet1" version="1.3"/> + <facet id="facet2" version="5.0"/> + </validator> +</extension> +</pre> + +<p>Multiple plugins can contribute to the set of the default facets for a given runtime component. If the following example is combined with the first one, there will be three default facets associated with MyRuntimeComponent.</p> + +<pre> +<extension point="org.eclipse.wst.common.project.facet.core.defaultFacets"> + <default-facets> + <runtime-component id="MyRuntimeComponent"/> + <facet id="facet3" version="1.2"/> + </validator> +</extension> +</pre> + </documentation> </annotation> diff --git a/plugins/org.eclipse.wst.common.project.facet.core/schemas/facets.exsd b/plugins/org.eclipse.wst.common.project.facet.core/schemas/facets.exsd index b42f571..07b3074 100644 --- a/plugins/org.eclipse.wst.common.project.facet.core/schemas/facets.exsd +++ b/plugins/org.eclipse.wst.common.project.facet.core/schemas/facets.exsd @@ -584,7 +584,62 @@ <meta.section type="examples"/> </appInfo> <documentation> - + <p>The following example illustrates the various facilities exposed by this extension point. This example is taken from the <i>Building Project Facets</i> tutorial.</p> + +<pre> +<extension point="org.eclipse.wst.common.project.facet.core.facets"> + + <category id="formgen.category"> + <label>FormGen</label> + <description>Enables generation of HTML forms based on XML definition files.</description> + </category> + + <project-facet id="formgen.core"> + <label>FormGen Core</label> + <description> + Enables generation of HTML forms based on XML definition files. + </description> + <category>formgen.category</category> + </project-facet> + + <project-facet-version facet="formgen.core" version="1.0"> + <constraint> + <requires facet="jst.web" version="2.2,2.3,2.4"/> + </constraint> + <action type="INSTALL" id="formgen.core.install"> + <config-factory class="com.formgen.eclipse.FormGenCoreFacetInstallConfig$Factory"/> + <delegate class="com.formgen.eclipse.FormGenCoreFacetInstallDelegate"/> + </action> + </project-facet-version> + + <project-facet id="formgen.ext"> + <label>FormGen Extensions</label> + <description> + Enables additional FormGen widgets. + </description> + <category>formgen.category</category> + </project-facet> + + <project-facet-version facet="formgen.ext" version="1.0"> + <constraint> + <requires facet="formgen.core" version="1.0"/> + </constraint> + <action type="INSTALL"> + <delegate class="com.formgen.eclipse.FormGenExtFacetInstallDelegate"/> + </action> + </project-facet-version> + + <preset id="formgen.preset"> + <label>FormGen Web Project</label> + <description>Creates a web project with FormGen functionality.</description> + <facet id="jst.java" version="5.0"/> + <facet id="jst.web" version="2.2"/> + <facet id="formgen.core" version="1.0"/> + <facet id="formgen.ext" version="1.0"/> + </preset> + +</extension> +</pre> </documentation> </annotation> diff --git a/plugins/org.eclipse.wst.common.project.facet.core/schemas/validators.exsd b/plugins/org.eclipse.wst.common.project.facet.core/schemas/validators.exsd index 58ac541..00b1052 100644 --- a/plugins/org.eclipse.wst.common.project.facet.core/schemas/validators.exsd +++ b/plugins/org.eclipse.wst.common.project.facet.core/schemas/validators.exsd @@ -6,7 +6,7 @@ <meta.schema plugin="org.eclipse.wst.common.project.facet.core" id="validators" name="Faceted Project Validators Extension Point"/> </appInfo> <documentation> - Used for declaring faceted project validators. + Used for declaring faceted project validators. </documentation> </annotation> @@ -86,7 +86,25 @@ <meta.section type="examples"/> </appInfo> <documentation> - + <p>The following example declares a validator that applies to projects that have facet1 (version 1.3 or 2.5) and facet2 (any version) installed.</p> + +<pre> +<extension point="org.eclipse.wst.common.project.facet.core.validators"> + <validator class="com.mycorp.MyValidator1"> + <facet id="facet1" version="1.3,2.5"/> + <facet id="facet2"/> + </validator> +</extension> +</pre> + +<p>The second example declares a validator that applies to all faceted projects.</p> + +<pre> +<extension point="org.eclipse.wst.common.project.facet.core.validators"> + <validator class="com.mycorp.MyValidator2"/> +</extension> +</pre> + </documentation> </annotation> diff --git a/plugins/org.eclipse.wst.common.project.facet.ui/schemas/images.exsd b/plugins/org.eclipse.wst.common.project.facet.ui/schemas/images.exsd index bb52d68..f0aadc4 100644 --- a/plugins/org.eclipse.wst.common.project.facet.ui/schemas/images.exsd +++ b/plugins/org.eclipse.wst.common.project.facet.ui/schemas/images.exsd @@ -94,7 +94,15 @@ <meta.section type="examples"/> </appInfo> <documentation> - + <p>The following example associates images with two facets and a category.</p> + +<pre> +<extension point="org.eclipse.wst.common.project.facet.ui.images"> + <image facet="facet1" path="icons/facet1.gif"/> + <image facet="facet2" path="icons/facet2.gif"/> + <image category="category1" path="icons/category1.gif"/> +</extension> +</pre> </documentation> </annotation> diff --git a/plugins/org.eclipse.wst.common.project.facet.ui/schemas/wizard-pages.exsd b/plugins/org.eclipse.wst.common.project.facet.ui/schemas/wizard-pages.exsd index a184393..b6ec9f8 100644 --- a/plugins/org.eclipse.wst.common.project.facet.ui/schemas/wizard-pages.exsd +++ b/plugins/org.eclipse.wst.common.project.facet.ui/schemas/wizard-pages.exsd @@ -96,7 +96,19 @@ <meta.section type="examples"/> </appInfo> <documentation> - + <p>The following example associates wizard pages with install and uninstall actions of facet1.</p> + +<pre> +<extension point="org.eclipse.wst.common.project.facet.ui.wizardPages"> + <wizard-pages action="facet1.install"> + <page class="com.mycorp.Facet1InstallPage1"/> + <page class="com.mycorp.Facet1InstallPage2"/> + </wizard-pages> + <wizard-pages action="facet1.uninstall"> + <page class="com.mycorp.Facet1UninstallPage"/> + </wizard-pages> +</extension> +</pre> </documentation> </annotation> |