diff options
author | Frank Appel | 2008-04-22 13:30:30 +0000 |
---|---|---|
committer | Frank Appel | 2008-04-22 13:30:30 +0000 |
commit | 906c2143832777d7029fb9e0e421514f1acf6afc (patch) | |
tree | 4e5c18b2f21214bbc7be6a698a4d5332e733b3de /bundles/org.eclipse.rap.ui/schema | |
parent | 5f8c9f7fe8f4a347e5ae4a4f70a67f7f858a17c7 (diff) | |
download | org.eclipse.rap-906c2143832777d7029fb9e0e421514f1acf6afc.tar.gz org.eclipse.rap-906c2143832777d7029fb9e0e421514f1acf6afc.tar.xz org.eclipse.rap-906c2143832777d7029fb9e0e421514f1acf6afc.zip |
code adaption to 3.4 (activities)
Diffstat (limited to 'bundles/org.eclipse.rap.ui/schema')
-rwxr-xr-x | bundles/org.eclipse.rap.ui/schema/activitySupport.exsd | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/bundles/org.eclipse.rap.ui/schema/activitySupport.exsd b/bundles/org.eclipse.rap.ui/schema/activitySupport.exsd index 40c8013860..01d7c90776 100755 --- a/bundles/org.eclipse.rap.ui/schema/activitySupport.exsd +++ b/bundles/org.eclipse.rap.ui/schema/activitySupport.exsd @@ -126,14 +126,14 @@ <element name="triggerPointAdvisorProductBinding"> <annotation> <documentation> - Specifies a binding between a product and an advisor. These bindings determine which advisor is appropriate for the current product (as defined by <code>org.eclipse.core.runtime.Platform.getProduct()</code>). + Specifies a binding between a <b>RAP branding</b> and an advisor. These bindings determine which advisor is appropriate for the current RAP branding (as defined by the id-attribute of a branding extension). </documentation> </annotation> <complexType> <attribute name="productId" type="string" use="required"> <annotation> <documentation> - unique id of a product + unique id of a branding extension. To bind an advisor to the built-in branding use the value "<code>org.eclipse.rap.rwt.branding.default</code>". </documentation> </annotation> </attribute> @@ -237,15 +237,38 @@ </pre> </p> -The following is an example of a trigger point advisor bound to a particular product: +The following is an example of a trigger point advisor bound to the default RAP branding, thus replacing the default <code>WorkbenchTriggerPointAdvisor</code>: + +<p> +<pre> + <extension point="org.eclipse.ui.activitySupport"> + <triggerPointAdvisor + id="com.example.xyz.myTriggerPointAdvisor" + class="com.example.xyz.AdvisorImpl"/> + <triggerPointAdvisorProductBinding + productId="org.eclipse.rap.rwt.branding.default" + triggerPointAdvisorId="com.example.xyz.myTriggerPointAdvisor" /> + </extension> +</pre> +</p> + +The following is an example of a trigger point advisor bound to a particular RAP branding: <p> <pre> + <extension + point="org.eclipse.rap.ui.branding"> + <branding + favicon="icons/eclipse.gif" + id="example.activity.branding1" + servletName="rap2" + title="Activity Example"/> + </extension> <extension point="org.eclipse.ui.activitySupport"> <triggerPointAdvisor id="com.example.xyz.myTriggerPointAdvisor" class="com.example.xyz.AdvisorImpl"/> <triggerPointAdvisorProductBinding - productId="myProduct" + productId="example.activity.branding1" triggerPointAdvisorId="com.example.xyz.myTriggerPointAdvisor" /> </extension> </pre> |