use of plugin.overland.gui.OverPanel in project pcgen by PCGen.
the class OverlandPlugin method toolMenuItem.
/**
* Sets the index for the pane
* @param evt
*/
private void toolMenuItem(ActionEvent evt) {
JTabbedPane tp = GMGenSystemView.getTabPane();
IntStream.range(0, tp.getTabCount()).filter(i -> tp.getComponentAt(i) instanceof OverPanel).forEach(tp::setSelectedIndex);
}
use of plugin.overland.gui.OverPanel in project pcgen by PCGen.
the class OverlandPlugin method start.
/**
* Starts the plugin, registering itself with the {@code TabAddMessage}.
*/
@Override
public void start(PCGenMessageHandler mh) {
messageHandler = mh;
File datadir = this.getDataDirectory();
theView = new OverPanel(datadir);
messageHandler.handleMessage(new RequestAddTabToGMGenMessage(this, getLocalizedName(), getView()));
initMenus();
}
Aggregations