Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.PreferenceDialog


        linkCreateNewRuntime.setText("configure WGA distributions");
        linkCreateNewRuntime.addHyperlinkListener(new HyperlinkAdapter() {

            @Override
            public void linkActivated(HyperlinkEvent e) {
                PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(new Shell(), WGADesignerPlugin.PREFERENCES_PAGE_WGA_DEPLOYMENTS, null, null);
                if (pref != null) {
                    pref.open();
                    updateWGADistributions();
                }
            }
        });
View Full Code Here


    }
   
    addActionToMenu(menu, new Action("configure snippets ...") {
      @Override
      public void run() {
        PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(new Shell(), ResourceIDs.PREFERENCES_PAGE_CODE_SNIPPETS, null, null);
        if (pref != null) {     
          pref.open();   
        }
      }
    });
  }
View Full Code Here

      bind(form, SWTBinder.BINDING_STRATEGY_AS_YOU_TYPE);
  }

 
  private void handleConfigureWGADistributions() {
    PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(new Shell(), WGADesignerPlugin.PREFERENCES_PAGE_WGA_DEPLOYMENTS, null, null);
    if (pref != null) {     
      pref.open();   
    }
  }
View Full Code Here

      pref.open();   
    }
  }
 
  private void openGeneralPreferencesPage() {
    PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(new Shell(), WGADesignerPlugin.PREFERENCES_PAGE_WGA_DEVELOPMENT_STUDIO, null, null);
    if (pref != null) {     
      pref.open();   
    }
  }
View Full Code Here

            }
        }

        String pageId = overridePresent ? PAGE_ID_OVERRIDE : PAGE_ID;

        PreferenceDialog dialog = PreferencesUtil.createPropertyDialogOn(shell, project,
                pageId, new String[] { pageId }, null);
        dialog.open();
    }
View Full Code Here

            title = getSelectedConnections()[0].getName();
        }

        if ( element != null )
        {
            PreferenceDialog dialog = PreferencesUtil.createPropertyDialogOn( getShell(), element, pageId, null, null );
            if ( dialog != null )
                title = Utils.shorten( title, 30 );
            dialog.getShell().setText(
                NLS.bind( Messages.getString( "PropertiesAction.PropertiesFor" ), new String[] { title } ) ); //$NON-NLS-1$
            dialog.open();

        }
    }
View Full Code Here

    }

    private void typePageLinkActivated() {
        IJavaProject project = getJavaProject();
        if (project != null) {
            PreferenceDialog dialog = PreferencesUtil.createPropertyDialogOn(getShell(), project.getProject(), CodeTemplatePreferencePage.PROP_ID, null, null);
            dialog.open();
        } else {
            String title = NewWizardMessages.NewTypeWizardPage_configure_templates_title;
            String message = NewWizardMessages.NewTypeWizardPage_configure_templates_message;
            MessageDialog.openInformation(getShell(), title, message);
        }
View Full Code Here

        {
            public void handleEvent(Event event)
            {
                if ("excludedResourcePrefs".equals(event.text))
                {
                    PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(
                        getPage().getEditorSite().getShell(),
                        SigilCore.EXCLUDED_RESOURCES_PREFERENCES_ID, null, null);
                    dialog.open();
                }
            }
        });

        SigilCore.getDefault().getPreferenceStore().addPropertyChangeListener(this);
View Full Code Here

                    "Do not show this message again", false, null, null);
                prefs.setValue(SigilCore.PREFERENCES_NOASK_OSGI_INSTALL,
                    questionDialog.getToggleState());
                if (questionDialog.getReturnCode() == IDialogConstants.YES_ID)
                {
                    PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(
                        null, SigilCore.OSGI_INSTALLS_PREFERENCES_ID, null, null);
                    dialog.open();
                }
            }
        };
        Display d = Display.getCurrent();
        if (d == null)
View Full Code Here

                                    + "Please configure it. "
                                    + "Eclipse will restart afterwards.");
                }
                reported = true;

                final PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(
                        PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
                        "org.erlide.ui.preferences.runtimes", null, null);
                if (pref != null) {
                    if (pref.open() == Window.OK) {
                        ErlLogger
                                .info("Restarting workbench after initial runtime configuration...");
                        PlatformUI.getWorkbench().restart();
                    }
                }
View Full Code Here

TOP

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

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.