public interface IPluginMenu extends ActionListener, IDeactivatableMenu
| Modifier and Type | Method and Description |
|---|---|
void |
addMenuItem(IPlugin plugin)
Adds a menu item for a plugin to the root of each menu ("/").
|
void |
addMenuItem(IPlugin plugin,
String relativePath)
Adds a menu item for a plugin at a given relative path, or
"mounting point" within the menu.
|
void |
sortAndAdd()
Sorts the menu items in all menus in an alphabetically ascending fashion.
|
void |
update()
Updates the menu structure.
|
actionPerformedactivate, activateAll, deactivate, deactivateAllvoid addMenuItem(IPlugin plugin)
plugin - the pluginvoid addMenuItem(IPlugin plugin, String relativePath)
plugin - the pluginrelativePath - the relative path in the menuvoid update()
void sortAndAdd()
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.