Search in sources :

Example 6 with RequestAddTabToGMGenMessage

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();
}
Also used : RequestAddTabToGMGenMessage(gmgen.pluginmgr.messages.RequestAddTabToGMGenMessage) DiceBagPluginController(plugin.dicebag.gui.DiceBagPluginController)

Example 7 with RequestAddTabToGMGenMessage

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();
}
Also used : RequestAddTabToGMGenMessage(gmgen.pluginmgr.messages.RequestAddTabToGMGenMessage) NameGenPanel(pcgen.gui2.doomsdaybook.NameGenPanel)

Example 8 with RequestAddTabToGMGenMessage

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();
}
Also used : RequestAddTabToGMGenMessage(gmgen.pluginmgr.messages.RequestAddTabToGMGenMessage) PreferencesExperiencePanel(plugin.experience.gui.PreferencesExperiencePanel) RequestAddPreferencesPanelMessage(gmgen.pluginmgr.messages.RequestAddPreferencesPanelMessage) ExperienceAdjusterView(plugin.experience.gui.ExperienceAdjusterView)

Example 9 with RequestAddTabToGMGenMessage

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();
}
Also used : RequestAddTabToGMGenMessage(gmgen.pluginmgr.messages.RequestAddTabToGMGenMessage) InitHolderList(gmgen.plugin.InitHolderList) EncounterView(plugin.encounter.gui.EncounterView)

Aggregations

RequestAddTabToGMGenMessage (gmgen.pluginmgr.messages.RequestAddTabToGMGenMessage)9 RequestAddPreferencesPanelMessage (gmgen.pluginmgr.messages.RequestAddPreferencesPanelMessage)4 InitHolderList (gmgen.plugin.InitHolderList)1 AddMenuItemToGMGenToolsMenuMessage (gmgen.pluginmgr.messages.AddMenuItemToGMGenToolsMenuMessage)1 GMGenBeingClosedMessage (gmgen.pluginmgr.messages.GMGenBeingClosedMessage)1 File (java.io.File)1 NameGenPanel (pcgen.gui2.doomsdaybook.NameGenPanel)1 DiceBagPluginController (plugin.dicebag.gui.DiceBagPluginController)1 EncounterView (plugin.encounter.gui.EncounterView)1 ExperienceAdjusterView (plugin.experience.gui.ExperienceAdjusterView)1 PreferencesExperiencePanel (plugin.experience.gui.PreferencesExperiencePanel)1 Initiative (plugin.initiative.gui.Initiative)1 PreferencesDamagePanel (plugin.initiative.gui.PreferencesDamagePanel)1 PreferencesInitiativePanel (plugin.initiative.gui.PreferencesInitiativePanel)1 PreferencesMassiveDamagePanel (plugin.initiative.gui.PreferencesMassiveDamagePanel)1 PreferencesPerformancePanel (plugin.initiative.gui.PreferencesPerformancePanel)1 NotesView (plugin.notes.gui.NotesView)1 PreferencesNotesPanel (plugin.notes.gui.PreferencesNotesPanel)1 OverPanel (plugin.overland.gui.OverPanel)1 PCGTrackerView (plugin.pcgtracker.gui.PCGTrackerView)1