Package org.eclipse.ui.internal.dialogs

Examples of org.eclipse.ui.internal.dialogs.PropertyDialog


        page.setElement(new AnnotationTypeNode(editor, null));
        page.setTitle("Styles");
        PreferenceManager mgr = new PreferenceManager();
        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


 
  public void execute() {
    IWorkbenchWindow window = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow();
    if (window != null) {
      PropertyDialog dialog = PropertyDialog.createDialogOn(window
          .getShell(), preferenceNode.getId(), selectedElement);
      dialog.open();
    }
  }
View Full Code Here

        super();
    }

    @Override
    public void execute(IAction action) {
        PropertyDialog dialog =
                PropertyDialog.createDialogOn(workbenchWindow.getShell(), Constants.PROJECT_CONTENT_PROPERTIES_PAGE_ID,
                    project);

        if (dialog != null) {
            dialog.open();
        }

    }
View Full Code Here

        super();
    }

    @Override
    public void execute(IAction action) {
        PropertyDialog dialog =
                PropertyDialog.createDialogOn(workbenchWindow.getShell(), Constants.PROJECT_PROPERTIES_PAGE_ID,
                    project);

        if (dialog != null) {
            dialog.open();
        }

    }
View Full Code Here

        page.setElement(new AnnotationTypeNode(editor, null));
        page.setTitle("Styles");
        PreferenceManager mgr = new PreferenceManager();
        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

  private static boolean openPreferenceNode(final String propertyPageId, final IPreferenceNode targetNode,
      final String title, Object element, Map<String, Object> data) {

    PreferenceManager manager = new PreferenceManager();
    manager.addToRoot(targetNode);
    final PropertyDialog dialog = new PropertyDialog(SpringUIPlugin.getActiveWorkbenchShell(), manager,
        new StructuredSelection(element));

    if (propertyPageId != null) {
      dialog.setSelectedNode(propertyPageId);
    }
    if (data != null) {
      dialog.setPageData(data);
    }

    final boolean[] result = new boolean[] { false };
    BusyIndicator.showWhile(getStandardDisplay(), new Runnable() {
      public void run() {
        dialog.create();
        dialog.setMessage(targetNode.getLabelText());
        dialog.getShell().setText(title);
        result[0] = (dialog.open() == Window.OK);
      }
    });
    return result[0];
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.dialogs.PropertyDialog

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.