Package org.java.plugin

Examples of org.java.plugin.PluginManager


* view plugin.
*/
public class EventHandlerProvider implements EventHandlerProviderInterface {

  public void init(GraphController networkView) {
    PluginManager pManager = PluginManager.lookup(this);
    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 visualizer event handler", e);
    }

View Full Code Here


   * @author Nico Naumann
   * Initializes the import menu in the main applications menu bar
   */
  public void init(JMenu menu) {
    try {
      PluginManager manager = PluginManager.lookup(this);
      ImporterPlugin plugin = (ImporterPlugin) manager
          .getPlugin(ImporterPlugin.PLUGIN_ID);

      // TODO make mnemonic configurable.

      // this is a hard-coded mnemonic x for a configurable menu label.
View Full Code Here

public class RoutesAndTripsEditorProvider implements EditorProviderInterface{

  @Override
  public void init(QMenu topMenuElement, MainWindow window) {
    // TODO Auto-generated method stub
    PluginManager pManager = PluginManager.lookup(this);
    RoutesAndTripsEditorPlugin plugin = null;
    try {
      plugin = (RoutesAndTripsEditorPlugin)pManager.getPlugin(RoutesAndTripsEditorPlugin.PLUGIN_ID);
    } catch (PluginLifecycleException e) {
      Logger log = Logger.getLogger(this.getClass());
      log.error("Error while initializing Routes and Trips Editor support.", e);
    }
View Full Code Here

    this.hostname = hostname;
    offX = 0;
    offY = 0;
    this.log = Logger.getLogger(this.getClass());
   
    PluginManager pluginManager = PluginManager.lookup(this);
    try {
      networkViewPlugin = (GraphPlugin)pluginManager.getPlugin(GraphPlugin.PLUGIN_ID);
    } catch (PluginLifecycleException e) {
      log.error("Failed to load network view plugin");
      e.printStackTrace();
    }
    observable = new ObservableWrapper();
View Full Code Here

*
*/
public class EventHandlerProvider implements EventHandlerProviderInterface {

  public void init(GraphController networkView) {
    PluginManager pManager = PluginManager.lookup(this);
    TLSEditorPlugin plugin = null;
    try {
      plugin = (TLSEditorPlugin) pManager.getPlugin(TLSEditorPlugin.PLUGIN_ID);
    } catch (PluginLifecycleException e) {
      Logger log = Logger.getLogger(this.getClass());
      log.error("Error while initializing the traffic light editor event handler", e);
    }
    plugin.initializeEventHandler(networkView);
View Full Code Here

public class VisualizerPluginProvider implements VisualizerPluginProviderInterface{

  @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());
      log.error("Error while initializing Provider for Visualizer Plugin.", e);
    }
    plugin.initializeVisualizerPlugin(visualizerPlugin);
View Full Code Here

* @author Philipp Maschke
*/
public class SumoDumpImportProvider implements ImportProviderInterface {

  public void init(JMenu menu) {
    PluginManager pManager = PluginManager.lookup(this);
    SimulationStatisticPlugin plugin = null;
    try {
      plugin = (SimulationStatisticPlugin) pManager.getPlugin(SimulationStatisticPlugin.PLUGIN_ID);
    } catch (PluginLifecycleException e) {
      Logger log = Logger.getLogger(this.getClass());
      log.error("Error while initializing SUMO Dump Import menu support.", e);
    }
   
View Full Code Here

  /**
   * Constructor. Loads the NetworkView plug-in, which is needed for the manipulation of volatile model elements.
   */
  private ModelController() {
    PluginManager pluginManager = PluginManager.lookup(this);
    try {
      networkViewPlugin = (GraphPlugin) pluginManager.getPlugin(GraphPlugin.PLUGIN_ID);
      log.debug("ModelController initialized");
    } catch (PluginLifecycleException e) {
      log.error("Failed to load NetworkView plugin");
      e.printStackTrace();
    }
View Full Code Here

* which is an extension point of the network view plugin.
*/
public class EventHandlerProvider implements EventHandlerProviderInterface {

  public void init(GraphController networkView) {
    PluginManager pManager = PluginManager.lookup(this);
    SimulationStatisticPlugin plugin = null;
    try {
      plugin = (SimulationStatisticPlugin) pManager.getPlugin(SimulationStatisticPlugin.PLUGIN_ID);
    } catch (PluginLifecycleException e) {
      Logger log = Logger.getLogger(this.getClass());
      log.error("Error while initializing visualizer event handler", e);
    }
   
View Full Code Here

   */
  public RouteEditDialog(QWidget parent) {
    super(parent);
    sm = SumoManager.getInstance();
   
    PluginManager pm = PluginManager.lookup(this);
    SumoExportProvider sumoPlugin;
    try {
      sumoPlugin = (SumoExportProvider) pm
          .getPlugin(SumoExportProvider.PLUGIN_ID);
    } catch (PluginLifecycleException e) {
      e.printStackTrace();
      return;
    }
View Full Code Here

TOP

Related Classes of org.java.plugin.PluginManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.