use of gmgen.pluginmgr.messages.AddMenuItemToGMGenToolsMenuMessage in project pcgen by PCGen.
the class DiceBagPlugin method initMenus.
/**
* <p>
* Adds DiceBag menu items to tools and menu.
* </p>
*/
private void initMenus() {
notesToolsItem = makeMenuItem(getLocalizedName(), DiceBagPlugin.DICEBAG_TOOLS_COMMAND, null, //$NON-NLS-1$
LanguageBundle.getString("in_plugin_dicebag_desc"), //$NON-NLS-1$
LanguageBundle.getMnemonic("in_mn_plugin_dicebag_name"));
messageHandler.handleMessage(new AddMenuItemToGMGenToolsMenuMessage(this, notesToolsItem));
}
use of gmgen.pluginmgr.messages.AddMenuItemToGMGenToolsMenuMessage in project pcgen by PCGen.
the class OverlandPlugin method initMenus.
/**
* Initialise the menus for this plugin
*/
private void initMenus() {
overToolsItem.setMnemonic(LanguageBundle.getMnemonic(IN_NAME_MN));
overToolsItem.setText(getLocalizedName());
overToolsItem.addActionListener(this::toolMenuItem);
messageHandler.handleMessage(new AddMenuItemToGMGenToolsMenuMessage(this, overToolsItem));
}
use of gmgen.pluginmgr.messages.AddMenuItemToGMGenToolsMenuMessage in project pcgen by PCGen.
the class RandomNamePlugin method initMenus.
/**
* Initialise the menus
*/
private void initMenus() {
nameToolsItem.setMnemonic(LanguageBundle.getMnemonic(RandomNamePlugin.IN_NAME_MN));
nameToolsItem.setText(RandomNamePlugin.getLocalizedName());
nameToolsItem.addActionListener(RandomNamePlugin::toolMenuItem);
messageHandler.handleMessage(new AddMenuItemToGMGenToolsMenuMessage(this, nameToolsItem));
}
use of gmgen.pluginmgr.messages.AddMenuItemToGMGenToolsMenuMessage in project pcgen by PCGen.
the class ExperienceAdjusterPlugin method initMenus.
/**
* Initialise menus
*/
private void initMenus() {
experienceToolsItem.setMnemonic(LanguageBundle.getMnemonic(ExperienceAdjusterPlugin.IN_NAME_MN));
experienceToolsItem.setText(getLocalizedName());
experienceToolsItem.addActionListener(this::toolMenuItem);
messageHandler.handleMessage(new AddMenuItemToGMGenToolsMenuMessage(this, experienceToolsItem));
}
Aggregations