use of gmgen.pluginmgr.messages.RequestAddTabToGMGenMessage in project pcgen by PCGen.
the class DiceBagPlugin method start.
/**
* <p>
* Adds view panel via TabAddMessage and initializes the menu items.
* </p>
*/
@Override
public void start(PCGenMessageHandler mh) {
messageHandler = mh;
theController = new DiceBagPluginController();
messageHandler.handleMessage(new RequestAddTabToGMGenMessage(this, getLocalizedName(), theController.getComponent()));
initMenus();
}
use of gmgen.pluginmgr.messages.RequestAddTabToGMGenMessage in project pcgen by PCGen.
the class RandomNamePlugin method start.
/**
* Starts the plugin, registering itself with the {@code TabAddMessage}.
*/
@Override
public void start(PCGenMessageHandler mh) {
messageHandler = mh;
theView = new NameGenPanel(getDataDirectory());
messageHandler.handleMessage(new RequestAddTabToGMGenMessage(this, RandomNamePlugin.getLocalizedName(), getView()));
initMenus();
}
use of gmgen.pluginmgr.messages.RequestAddTabToGMGenMessage in project pcgen by PCGen.
the class ExperienceAdjusterPlugin method start.
/**
* Starts the plugin, registering itself with the {@code TabAddMessage}.
*/
@Override
public void start(PCGenMessageHandler mh) {
messageHandler = mh;
eaModel = new ExperienceAdjusterModel(getDataDirectory());
eaView = new ExperienceAdjusterView(eaModel);
messageHandler.handleMessage(new RequestAddPreferencesPanelMessage(this, getLocalizedName(), new PreferencesExperiencePanel()));
initListeners();
update();
messageHandler.handleMessage(new RequestAddTabToGMGenMessage(this, getLocalizedName(), getView()));
initMenus();
}
use of gmgen.pluginmgr.messages.RequestAddTabToGMGenMessage in project pcgen by PCGen.
the class EncounterPlugin method start.
/**
* Starts the plugin, registering itself with the {@code TabAddMessage}.
*/
@Override
public void start(PCGenMessageHandler mh) {
messageHandler = mh;
theModel = new EncounterModel();
theView = new EncounterView();
theRaces = new RaceModel();
theList = new InitHolderList();
createView();
messageHandler.handleMessage(new RequestAddTabToGMGenMessage(this, getLocalizedName(), getView()));
initMenus();
}
Aggregations