Search in sources :

Example 1 with ExperienceAdjusterView

use of plugin.experience.gui.ExperienceAdjusterView 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)

Aggregations

RequestAddPreferencesPanelMessage (gmgen.pluginmgr.messages.RequestAddPreferencesPanelMessage)1 RequestAddTabToGMGenMessage (gmgen.pluginmgr.messages.RequestAddTabToGMGenMessage)1 ExperienceAdjusterView (plugin.experience.gui.ExperienceAdjusterView)1 PreferencesExperiencePanel (plugin.experience.gui.PreferencesExperiencePanel)1