Examples of open()


Examples of org.eclipse.ui.dialogs.TypeFilteringDialog.open()

     */
    protected void handleTypesEditButtonPressed() {

        final TypeFilteringDialog dialog = new TypeFilteringDialog(getContainer()
                .getShell(), getTypesToImport());
        dialog.open();
        final Object[] newSelectedTypes = dialog.getResult();
        if (newSelectedTypes != null) { // ie.- did not press Cancel
            selectedTypes = new ArrayList<Object>(newSelectedTypes.length);
            for (int i = 0; i < newSelectedTypes.length; i++) {
                selectedTypes.add(newSelectedTypes[i]);
View Full Code Here

Examples of org.eclipse.ui.internal.activities.ws.EnablementDialog.open()

      return identifier.getActivityIds();
    }
   
        EnablementDialog dialog = new EnablementDialog(Util.getShellToParentOn(), identifier
                .getActivityIds(), strings);
        if (dialog.open() == Window.OK) {
            Set activities = dialog.getActivitiesToEnable();
            if (dialog.getDontAsk()) {
        PrefUtil.getInternalPreferenceStore().setValue(
            IPreferenceConstants.SHOULD_PROMPT_FOR_ENABLEMENT,
            false);
View Full Code Here

Examples of org.eclipse.ui.internal.cheatsheets.dialogs.CheatSheetCategoryBasedSelectionDialog.open()

  public void run() {
    CheatSheetCollectionElement cheatSheets = (CheatSheetCollectionElement)CheatSheetRegistryReader.getInstance().getCheatSheets();

    CheatSheetCategoryBasedSelectionDialog dialog = new CheatSheetCategoryBasedSelectionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), cheatSheets);

    if(dialog.open() != Window.OK || !dialog.getStatus().isOK()) {
      notifyResult(false);
      return;
    }
   
    notifyResult(true);
View Full Code Here

Examples of org.eclipse.ui.internal.dialogs.CustomizePerspectiveDialog.open()

        // Create list dialog.
        CustomizePerspectiveDialog dlg = window.createCustomizePerspectiveDialog(persp);
       
        // Open.
        boolean ret = (dlg.open() == Window.OK);
        if (ret) {
            window.updateActionSets();
            window.firePerspectiveChanged(this, getPerspective(), CHANGE_RESET);
            window.firePerspectiveChanged(this, getPerspective(),
                    CHANGE_RESET_COMPLETE);
View Full Code Here

Examples of org.eclipse.ui.internal.dialogs.PropertyDialog.open()

        IPreferenceNode node = new PreferenceNode("1", page);
        mgr.addToRoot(node);
        PropertyDialog dialog = new PropertyDialog(getSite().getShell(), mgr, sel);
        dialog.create();
        dialog.setMessage(page.getTitle());
        dialog.open();
      }
    };
   
    action.setImageDescriptor(CasEditorPlugin
            .getTaeImageDescriptor(Images.MODEL_PROCESSOR_FOLDER));
View Full Code Here

Examples of org.eclipse.ui.internal.dialogs.SavePerspectiveDialog.open()

        SavePerspectiveDialog dlg = new SavePerspectiveDialog(page.getWorkbenchWindow()
                .getShell(), reg);
        // Look up the descriptor by id again to ensure it is still valid.
        IPerspectiveDescriptor description = reg.findPerspectiveWithId(oldDesc.getId());
        dlg.setInitialSelection(description);
        if (dlg.open() != IDialogConstants.OK_ID) {
            return;
        }

        // Create descriptor.
        PerspectiveDescriptor newDesc = (PerspectiveDescriptor) dlg.getPersp();
View Full Code Here

Examples of org.eclipse.ui.internal.dialogs.SelectPerspectiveDialog.open()

  private final void openOther(final IWorkbenchWindow activeWorkbenchWindow)
      throws ExecutionException {
    final SelectPerspectiveDialog dialog = new SelectPerspectiveDialog(
        activeWorkbenchWindow.getShell(), WorkbenchPlugin.getDefault()
            .getPerspectiveRegistry());
    dialog.open();
    if (dialog.getReturnCode() == Window.CANCEL) {
      return;
    }

    final IPerspectiveDescriptor descriptor = dialog.getSelection();
View Full Code Here

Examples of org.eclipse.ui.internal.dialogs.ShowViewDialog.open()

      return;
    }
   
    final ShowViewDialog dialog = new ShowViewDialog(window,
        WorkbenchPlugin.getDefault().getViewRegistry());
    dialog.open();
   
    if (dialog.getReturnCode() == Window.CANCEL) {
      return;
    }
   
View Full Code Here

Examples of org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open()

    IWorkbenchWindow window = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow();
    if (window != null) {
      WorkbenchPreferenceDialog dialog = WorkbenchPreferenceDialog
          .createDialogOn(window.getShell(), preferenceNode.getId());
      dialog.open();
    }
  }

  public String getId() {
    return preferenceNode.getId();
View Full Code Here

Examples of org.eclipse.ui.internal.ide.dialogs.OpenResourceDialog.open()

     */
    private String askNewManageSubstitution(IPythonPathNature pythonPathNature,
            Map<String, String> variableSubstitution, String message) {
        String manageVarible = null;
        OpenResourceDialog manageSelectionDialog = createManageSelectionDialog(message);
        if (manageSelectionDialog.open() == OpenResourceDialog.OK) {
            Object firstResult = manageSelectionDialog.getFirstResult();
            if (firstResult instanceof IFile) {
                IFile iFile = (IFile) firstResult;
                IPath projectRelativePath = iFile.getProjectRelativePath();
                manageVarible = projectRelativePath.toPortableString();
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.