Package de.hpi.eworld.core.ui

Examples of de.hpi.eworld.core.ui.SharedAction


    return playAction;

  }

  private SharedAction createStopAction() {
    final SharedAction stopAction = new SharedAction() {
      private static final long serialVersionUID = 6491076271589946526L;

      @Override
      protected void execute(final ActionEvent e) {
        stopSimulation();
      }
    };
    stopAction.setText("Stop");
    stopAction.setSmallIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "stop.png", 16));
    stopAction.setLargeIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "stop.png", 20));
    stopAction.setToolTipText("Stop Simulation");
    return stopAction;

  }
View Full Code Here


    return stopAction;

  }

  private SharedAction createPauseAction() {
    final SharedAction pauseAction = new SharedAction() {
      private static final long serialVersionUID = -1356151726459786079L;

      @Override
      protected void execute(final ActionEvent e) {
      }
    };
    pauseAction.setText("Pause");
    pauseAction.setSmallIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "stop.png", 16));
    pauseAction.setLargeIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "stop.png", 20));
    pauseAction.setToolTipText("Pause Simulation");
    return pauseAction;

  }
View Full Code Here

    return pauseAction;

  }

  private SharedAction createStepAction() {
    final SharedAction stepAction = new SharedAction() {
      private static final long serialVersionUID = 6641963342916543603L;

      @Override
      protected void execute(final ActionEvent e) {
        stepSimulation();
      }
    };
    stepAction.setText("Step");
    stepAction.setSmallIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "step.png", 16));
    stepAction.setLargeIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "step.png", 20));
    stepAction.setToolTipText("Step");
    return stepAction;

  }
View Full Code Here

    return stepAction;

  }

  private SharedAction createConfigureAction() {
    final SharedAction configureAction = new SharedAction() {
      private static final long serialVersionUID = 5588199330307254531L;
      @Override
      protected void execute(ActionEvent e) {
        configureAndExport();
      }
    };
    configureAction.setText("export");
    configureAction.setSmallIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "configure.png", 16));
    configureAction.setLargeIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "configure.png", 20));
    configureAction.setToolTipText("Export to Sumo...");
    return configureAction;

  }
View Full Code Here

    mainWindow = window;
  }

  private SharedAction getCarEditorAction() {
    if (carEditorAction == null) {
      carEditorAction = new SharedAction() {
        private static final long serialVersionUID = 3980129486744377572L;

        @Override
        protected void execute(final ActionEvent e) {
          final CarEditorDialog carEditorDialog = new CarEditorDialog(mainWindow);
View Full Code Here

TOP

Related Classes of de.hpi.eworld.core.ui.SharedAction

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.