Package org.eclipse.debug.internal.ui.launchConfigurations

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

Related Classes of org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog

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.