public class VisualizerProvider implements VisualizerPluginProviderInterface {
@Override
public void init(JMenu topMenuElement, MainWindow mainWindow) {
PluginManager pManager = PluginManager.lookup(this);
@SuppressWarnings("unused")
VisualizerPlugin plugin = null;
try {
plugin = (VisualizerPlugin) pManager.getPlugin(VisualizerPlugin.PLUGIN_ID);
} catch (PluginLifecycleException e) {
Logger log = Logger.getLogger(this.getClass());
log.error("Error while initializing the visualizer plugin.", e);
}
}