Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.PropertyPage


      @Override
      public void run() {
        super.run();
       
        ISelection sel = new StructuredSelection(new AnnotationTypeNode(editor, null));
        PropertyPage page = new EditorAnnotationPropertyPage();
        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
View Full Code Here


  protected IProject getProject(PreferencePage preferencePage) {
    if (preferencePage == null) {
      return null;
    }
    PropertyPage propertyPage = (PropertyPage) preferencePage;
    IAdaptable element = propertyPage.getElement();
    if (element != null) {
      if (element instanceof IProject) {
        return (IProject) element;
      } else if (element instanceof IScriptProject) {
        return ((IScriptProject) element).getProject();
View Full Code Here

      @Override
      public void run() {
        super.run();
       
        ISelection sel = new StructuredSelection(new AnnotationTypeNode(editor, null));
        PropertyPage page = new EditorAnnotationPropertyPage();
        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
View Full Code Here

TOP

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

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.