@Override
public void init(JMenu topMenuElement, MainWindow mainWindow) {
PluginManager pManager = PluginManager.lookup(this);
SimulationStatisticPlugin plugin = null;
VisualizerPlugin visualizerPlugin = null;
try {
plugin = (SimulationStatisticPlugin) pManager.getPlugin(SimulationStatisticPlugin.PLUGIN_ID);
visualizerPlugin = (VisualizerPlugin) pManager.getPlugin(VisualizerPlugin.PLUGIN_ID);
} catch (PluginLifecycleException e) {
Logger log = Logger.getLogger(this.getClass());