Bug 571866 - Add possibility to register fragments and processors via DS Added documentation in Eclipse help Change-Id: Iac29645132c276439f2b35dc74e8c24393ce4ad9 Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.common/+/181211 Tested-by: Mickael Istria - away from work until June <mistria@redhat.com> Reviewed-by: Mickael Istria - away from work until June <mistria@redhat.com>
diff --git a/bundles/org.eclipse.platform.doc.isv/reference/misc/bundle_manifest.html b/bundles/org.eclipse.platform.doc.isv/reference/misc/bundle_manifest.html index 8b4f353..c6880e0 100644 --- a/bundles/org.eclipse.platform.doc.isv/reference/misc/bundle_manifest.html +++ b/bundles/org.eclipse.platform.doc.isv/reference/misc/bundle_manifest.html
@@ -470,6 +470,35 @@ Plugin-Class: org.eclipse.foo.FooPlugin </pre> +<h3>The Model-Fragment Header</h3> + +<p> +The Model-Fragment header is used to register a model fragment file as an extension to the application model, +similarly to extensions of <a href="../extension-points/org_eclipse_e4_workbench_model.html">org.eclipse.e4.workbench.model</a>. +The EModel-Fragment header must use the following syntax: +</p> + +<pre> +Model-Fragment ::= filename;apply= ( 'always' | 'initial' | 'notexists' ) +</pre> + + +The following is an example of the Model-Fragment header: +</p> + +<pre> +Model-Fragment: fragment.e4xmi;apply=always +</pre> + +<p> + The <code>apply</code> attribute is optional and defaults to <code>always</code>. It can have the following values: + <ul> + <li><b>always</b>: each time the application started potentially replacing existing model elements and loosing information stored</li> + <li><b>initial</b>: only when coming from a none persistent state</li> + <li><b>notexists</b>: only if the given element does not exist already in the model</li> + </ul> +</p> + </div> </body>
diff --git a/bundles/org.eclipse.platform.doc.isv/reference/services/index.html b/bundles/org.eclipse.platform.doc.isv/reference/services/index.html index 6750a21..5acac7c 100644 --- a/bundles/org.eclipse.platform.doc.isv/reference/services/index.html +++ b/bundles/org.eclipse.platform.doc.isv/reference/services/index.html
@@ -35,6 +35,15 @@ </li> </ul> <h3> + <a name="ui" id="ui"></a>Platform UI + </h3> + <ul> + <li> + <a href="../api/org/eclipse/e4/ui/workbench/modeling/IModelProcessorContribution.html">org.eclipse.e4.ui.workbench.modeling.IModelProcessorContribution</a> services + contribute model processors, similarly to extensions of <a href="../extension-points/org_eclipse_e4_workbench_model.html">org.eclipse.e4.workbench.model</a>. + </li> + </ul> + <h3> <a name="workspace" id="workspace"></a>Workspace </h3> <ul>