Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.ListSelectionDialog


        }
      };

      final IStructuredContentProvider contentsProvider = ArrayContentProvider.getInstance();

      final ListSelectionDialog dialog = new ListSelectionDialog(text
          .getShell(), bindings.entrySet(), contentsProvider,
          labelProvider,
          UIText.DecoratorPreferencesPage_selectVariablesToAdd);
      dialog.setHelpAvailable(false);
      dialog
      .setTitle(UIText.DecoratorPreferencesPage_addVariablesTitle);
      if (dialog.open() != Window.OK)
        return;

      Object[] result = dialog.getResult();

      for (int i = 0; i < result.length; i++) {
        text.insert("{" + ((Map.Entry) result[i]).getKey() + "}"); //$NON-NLS-1$ //$NON-NLS-2$
      }
    }
View Full Code Here


      }
      Object[] selectArr = selectable.toArray();
      new ModelElementSorter().sort(null, selectArr);
      // IScriptProject project = elem.getScriptProject();
      ScriptUILabelProvider labelProvider = new ScriptUILabelProvider();
      ListSelectionDialog dialog = new ListSelectionDialog(
          getShell(),
          Arrays.asList(selectArr),
          new ArrayContentProvider(),
          labelProvider,
          NewWizardMessages.ProjectsWorkbookPage_chooseProjects_message);
      dialog
          .setTitle(NewWizardMessages.ProjectsWorkbookPage_chooseProjects_title);
      dialog.setHelpAvailable(false);
      if (dialog.open() == Window.OK) {
        Object[] result = dialog.getResult();
        BPListElement[] cpElements = new BPListElement[result.length];
        for (int i = 0; i < result.length; i++) {
          IScriptProject curr = (IScriptProject) result[i];
          cpElements[i] = new BPListElement(fCurrJProject,
              IBuildpathEntry.BPE_PROJECT, curr.getPath(), curr
View Full Code Here

TOP

Related Classes of org.eclipse.ui.dialogs.ListSelectionDialog

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.