Org. Eclipse. UI. actionsets extension points are used to add menus, menu items, and toolbar buttons to public areas in the workbench window.
There is an element in org. Eclipse. UI. actionsets: actionset, which can contain at least one or more actionsets:
<! Element Extension (actionset +)>
Actionset contains two elements: menu and action. You can use menu separately, action, or two elements at the same time. However, the order of the menu before and the action after the menu must be ensured when both are used.
<! Element actionset (menu *, Action *)>
Menu contains two elements: separator and groupmarker. There can be at least one or more separators, with no or multiple groupmarker.
<! Element menu (separator +, groupmarker *)>
A menu corresponds to a menu, such as run, SOA, and window in the implementation scenario. Action corresponds to both menu items (such as Jax-Wa and SCA in the implementation scenario) in the menu and acts as a toolbar button.
There are multiple parameters in the Action element,
Where:
--- Menubarpath is used to associate menus (because actions correspond to menu items). This parameter is divided into two parts by "/". The first part is the menu ID (ID ), the following part is the ID or any letter of the separator in the menu (if you only need the preceding part, can you? Yes! What will happen? Try it
--- Toolbarpath can control whether action is displayed in the toolbar. If toolbarpath is empty, this button is not displayed in the toolbar.
In STP plugin, use actionsets to implement the SOA menu: