Package org.eclipse.debug.ui

Examples of org.eclipse.debug.ui.IDebugModelPresentation


    protected ILaunchConfiguration chooseConfiguration(final List<ILaunchConfiguration> configList) {
      final AtomicReference<ILaunchConfiguration> ret = new AtomicReference<ILaunchConfiguration>();
      DisplayUtil.syncExec(new Runnable() {
      @Override
      public void run() {
            IDebugModelPresentation labelProvider = null;
          try {
            labelProvider = DebugUITools.newDebugModelPresentation();
              ElementListSelectionDialog dialog= new ElementListSelectionDialog(JDIDebugUIPlugin.getActiveWorkbenchShell(), labelProvider);
              dialog.setElements(configList.toArray());
              dialog.setTitle("Choose a Clojure launch configuration")
              dialog.setMessage(LauncherMessages.JavaLaunchShortcut_2);
              dialog.setMultipleSelection(false);
              dialog.setAllowDuplicates(true);
              int result = dialog.open();
              if (result == Window.OK) {
                ret.set((ILaunchConfiguration) dialog.getFirstResult());
              }
          } finally {
            if (labelProvider != null) {
              labelProvider.dispose();
            }
          }
      }
    });
      return ret.get();
View Full Code Here


   * Show a selection dialog that allows the user to choose one of the
   * specified launch configurations. Return the chosen config, or
   * <code>null</code> if the user cancelled the dialog.
   */
  protected ILaunchConfiguration chooseConfiguration(List<ILaunchConfiguration> configList) {
    IDebugModelPresentation labelProvider = DebugUITools.newDebugModelPresentation();
    ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), labelProvider);
    dialog.setElements(configList.toArray());
    dialog.setTitle(LangUIMessages.LaunchShortcut_selectLaunch_title);
    dialog.setMessage(LangUIMessages.LaunchShortcut_selectLaunch_message);
    dialog.setMultipleSelection(false);
    int result = dialog.open();
    labelProvider.dispose();
    if (result == Window.OK) {
      return (ILaunchConfiguration) dialog.getFirstResult();
    }
    return null;
  }
View Full Code Here

   * Show a selection dialog that allows the user to choose one of the
   * specified launch configurations. Return the chosen config, or
   * <code>null</code> if the user cancelled the dialog.
   */
  protected ILaunchConfiguration chooseConfiguration(List<ILaunchConfiguration> configList) {
    IDebugModelPresentation labelProvider = DebugUITools.newDebugModelPresentation();
    ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), labelProvider);
    dialog.setElements(configList.toArray());
    dialog.setTitle(LangUIMessages.LaunchShortcut_selectLaunch_title);
    dialog.setMessage(LangUIMessages.LaunchShortcut_selectLaunch_message);
    dialog.setMultipleSelection(false);
    int result = dialog.open();
    labelProvider.dispose();
    if (result == Window.OK) {
      return (ILaunchConfiguration) dialog.getFirstResult();
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.debug.ui.IDebugModelPresentation

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.