Examples of LaunchConfigurationsDialog


Examples of org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog

    this.selection = selection;
  }

  @Override
  public void run() {
    LaunchConfigurationsDialog dialog = new LaunchConfigurationsDialog(
      RunnerPlugin.getRunnerShell(),
      getLaunchConfigurationManager().getLaunchGroup(getLaunchGroupId())
    );

    if (selection.hasExactlyOneNode() && selection.firstNodeHasType(ILaunchNode.class)) {
      dialog.setOpenMode(LAUNCH_CONFIGURATION_DIALOG_OPEN_ON_SELECTION);
      dialog.setInitialSelection(
        asStructuredSelection(selection.getFirstNodeAs(ILaunchNode.class).getLaunchConfiguration())
      );
    }
    else {
      dialog.setOpenMode(LAUNCH_CONFIGURATION_DIALOG_OPEN_ON_LAST_LAUNCHED);
    }

    dialog.open();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.