Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.PreferenceManager


        TreeSelection sel = (TreeSelection)viewer.getSelection();
        if(sel.getFirstElement() instanceof TreeParentNode){
          TreeParentNode selNode = (TreeParentNode)sel.getFirstElement();
          ActionsPreferencePage page = new ActionsPreferencePage();
          page.setFilter(selNode);
             PreferenceManager mgr = new PreferenceManager();
             IPreferenceNode node = new PreferenceNode("1", page);
             mgr.addToRoot(node);
             PreferenceDialog dialog = new PreferenceDialog(viewer.getControl().getShell(), mgr);
             dialog.create();
             dialog.setMessage(page.getTitle());
             dialog.open();
        }
View Full Code Here


   
   
    openSnipExPage = new Action("Edit SnipEx Servers", CFPluginImages.getImageRegistry().getDescriptor(CFPluginImages.ICON_SNIPEX)){
      public void run(){
           IPreferencePage page = new SnipExPreferencePage();
           PreferenceManager mgr = new PreferenceManager();
           IPreferenceNode node = new PreferenceNode("1", page);
           mgr.addToRoot(node);
           PreferenceDialog dialog = new PreferenceDialog(getSite().getShell(), mgr);
           dialog.create();
           dialog.setMessage(page.getTitle());
           dialog.open();
       
View Full Code Here

      int result = msg.open();
      if (result == SWT.YES) {
        IPreferencePage page = new BrowserPreferencePage();
        page.setTitle("Browsers");
        page.setDescription("You can define the  primary and secondary browsers that are launched when you press F12(primary) and Shift+F12(secondary)");
        PreferenceManager mgr = new PreferenceManager();
        IPreferenceNode node = new PreferenceNode("1", page);
        mgr.addToRoot(node);
        PreferenceDialog dialog = new PreferenceDialog(this.editor.getSite().getShell(), mgr);
        dialog.create();
        dialog.setMessage(page.getTitle());
        dialog.open();
      }
View Full Code Here

public class OpenPreferenceDialogHandler
{
    @Execute
    public void execute(@Named(IServiceConstants.ACTIVE_SHELL) Shell shell)
    {
        PreferenceManager pm = new PreferenceManager();
        pm.addToRoot(new PreferenceNode(PortfolioPlugin.PLUGIN_ID + ".updates", new UpdatePreferencePage())); //$NON-NLS-1$
       
        PreferenceDialog dialog = new PreferenceDialog(shell, pm);
        dialog.setPreferenceStore(PortfolioPlugin.getDefault().getPreferenceStore());
        dialog.create();
        dialog.getTreeViewer().setComparator(new ViewerComparator());
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);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.preference.PreferenceManager

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.