Examples of PreferenceDialog


Examples of org.eclipse.jface.preference.PreferenceDialog

        IProject project = file.getProject();
        if (project != null) {
          SelectionProvider selectionProvider = new SelectionProvider();
          selectionProvider.setSelection(new StructuredSelection(project));
              PropertyDialogAction propertyDialogAction = new PropertyDialogAction(editorPart.getEditorSite(), selectionProvider);
              PreferenceDialog dialog = propertyDialogAction.createDialog();
              if (dialog != null) {
                dialog.setSelectedNode("org.eclipse.jst.pagedesigner.WPEPropertyPage"); //$NON-NLS-1$
                //yes, we create AGAIN - cannot find another way to get the selected node to stick
                dialog = propertyDialogAction.createDialog();
                if (dialog != null) {
                  dialog.open();
                }
              }
        }
      }
    }
View Full Code Here

Examples of org.eclipse.jface.preference.PreferenceDialog

    return templateString;
  }

  void linkClicked() {
    String pageId = getPreferencePageId();
    PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(), pageId, new String[]{pageId}, null);
    dialog.open();
    fTableViewer.refresh();
  }
View Full Code Here

Examples of org.openstreetmap.josm.gui.preferences.PreferenceDialog

                pref.addActionListener(
                        new ActionListener(){
                            @Override
                            @SuppressWarnings("unchecked")
                            public void actionPerformed(ActionEvent e) {
                                final PreferenceDialog p = new PreferenceDialog(Main.parent);
                                if (TabPreferenceSetting.class.isAssignableFrom(preferenceClass)) {
                                    p.selectPreferencesTabByClass((Class<? extends TabPreferenceSetting>) preferenceClass);
                                } else if (SubPreferenceSetting.class.isAssignableFrom(preferenceClass)) {
                                    p.selectSubPreferencesTabByClass((Class<? extends SubPreferenceSetting>) preferenceClass);
                                }
                                p.setVisible(true);
                            }
                        }
                        );
                add(pref);
            }
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.