You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bundles/org.eclipse.ui/schema/menus.exsd
+24-22Lines changed: 24 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -527,12 +527,14 @@ This should be the starting point for <i>all</i> contributions into
527
527
A <code>URI</code> specification that defines the insertion point at which the contained additions will be added.
528
528
529
529
The format for the URI is comprised of three basic parts:
530
-
531
-
Scheme: One of "menu", "popup" or "toolbar. Indicates the type of the manager used to handle the contributions
532
-
Id: This is either the id of an existing menu, a view id or the id of the editor 'type'
533
-
Query: The query format is &lt;placement&gt;=&lt;id&gt; where:
534
-
&lt;placement&gt; is either "before", "after", or "endof" and
535
-
&lt;id&gt; is the id of an existing menu item. The placement modifier is executed when this contribution is processed. Following contributions may change the final shape of the menu when they are processed.
530
+
<ul>
531
+
<li>Scheme: One of "menu", "popup" or "toolbar". Indicates the type of the manager used to handle the contributions</li>
532
+
<li>Id: This is either the id of an existing menu, a view id or the id of the editor 'type'</li>
533
+
<li>Query: The query format is &lt;placement&gt;=&lt;id&gt; where &lt;placement&gt; is either "before", "after", or "endof" and &lt;id&gt; is the id of an existing menu item.</li>
534
+
</ul>
535
+
<p>
536
+
The placement modifier is executed when this contribution is processed. Following contributions may change the final shape of the menu when they are processed.
537
+
</p>
536
538
</documentation>
537
539
</annotation>
538
540
</attribute>
@@ -917,22 +919,6 @@ If defined then it can be used as a reference in the Query part of the location
917
919
</complexType>
918
920
</element>
919
921
920
-
<annotation>
921
-
<appInfo>
922
-
<meta.section type="apiInfo"/>
923
-
</appInfo>
924
-
<documentation>
925
-
<p>
926
-
It is preferred that menu contributions be added in the <code>plugin.xml</code>. Plugins can
927
-
programmatically add their own menu contributions using <code>org.eclipse.ui.menus.IMenuService</code> and <code>org.eclipse.ui.menus.AbstractContributionFactory</code>, but should be sure to remove them if the plugin is unloaded. The <code>IMenuService</code> can be retrieved through any of the <code>IServiceLocators</code>, the workbench, the workbench window, or the part site.
928
-
</p>
929
-
<p>
930
-
See <a href="org_eclipse_ui_commands.html">org.eclipse.ui.commands</a> to define a command and <a href="org_eclipse_ui_handlers.html">org.eclipse.ui.handlers</a> to define an implementation for the command.
931
-
</p>
932
-
<p>To register a context menu, use the <code>IWorkbenchPartSite.registerContextMenu</code> methods.</p>
933
-
</documentation>
934
-
</annotation>
935
-
936
922
<annotation>
937
923
<appInfo>
938
924
<meta.section type="since"/>
@@ -972,6 +958,22 @@ This is the simplest example; adding a command contribution after an existing me
972
958
</documentation>
973
959
</annotation>
974
960
961
+
<annotation>
962
+
<appInfo>
963
+
<meta.section type="apiInfo"/>
964
+
</appInfo>
965
+
<documentation>
966
+
<p>
967
+
It is preferred that menu contributions be added in the <code>plugin.xml</code>. Plugins can
968
+
programmatically add their own menu contributions using <code>org.eclipse.ui.menus.IMenuService</code> and <code>org.eclipse.ui.menus.AbstractContributionFactory</code>, but should be sure to remove them if the plugin is unloaded. The <code>IMenuService</code> can be retrieved through any of the <code>IServiceLocators</code>, the workbench, the workbench window, or the part site.
969
+
</p>
970
+
<p>
971
+
See <a href="org_eclipse_ui_commands.html">org.eclipse.ui.commands</a> to define a command and <a href="org_eclipse_ui_handlers.html">org.eclipse.ui.handlers</a> to define an implementation for the command.
972
+
</p>
973
+
<p>To register a context menu, use the <code>IWorkbenchPartSite.registerContextMenu</code> methods.</p>
0 commit comments