Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.PreferenceDialog


        advancedGeneralSettingsLink = new Link(headerComposite, SWT.NONE);
        advancedGeneralSettingsLink.setFont(composite.getFont());
        advancedGeneralSettingsLink.setText("<A>Configure Workspace Settings...</A>");
        advancedGeneralSettingsLink.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(),
                    ClasspathPreferencePage.PEREFERENCE_PAGE_ID, null, null);
                dialog.open();
            }
        });
        advancedGeneralSettingsLink.setLayoutData(new GridData(SWT.END, SWT.CENTER, false, false));

        Label horizontalLine = new Label(headerComposite, SWT.SEPARATOR | SWT.HORIZONTAL);
View Full Code Here


            title = getSelectedSearchResults()[0].getDn().getUpName();
        }

        if ( element != null )
        {
            PreferenceDialog dialog = PreferencesUtil.createPropertyDialogOn( getShell(), element, pageId, null, null );
            if ( dialog != null )
                title = Utils.shorten( title, 30 );
            dialog.getShell().setText( "Properties for '" + title + "'" );
            dialog.open();

        }
    }
View Full Code Here

        {
            StructuredSelection selection = ( StructuredSelection ) view.getViewer().getSelection();
            if ( !selection.isEmpty() )
            {
                Server server = ( Server ) selection.getFirstElement();
                PreferenceDialog dialog = PreferencesUtil.createPropertyDialogOn( view.getViewSite().getShell(),
                    server, ApacheDsPluginConstants.PROP_SERVER_PROPERTY_PAGE, null, null );
                dialog.getShell().setText( "Properties for '" + shorten( server.getName(), 30 ) + "'" );
                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( "Properties for '" + title + "'" );
            dialog.open();

        }
    }
View Full Code Here

    public void widgetSelected(SelectionEvent e) {
      if (e.getSource() == openPreferences) {
        PreferenceManager manager = new PreferenceManager();
        manager.addToRoot(new PreferenceNode(
            "Hadoop Installation Directory", new MapReducePreferencePage()));
        PreferenceDialog dialog =
            new PreferenceDialog(this.getShell(), manager);
        dialog.create();
        dialog.setMessage("Select Hadoop Installation Directory");
        dialog.setBlockOnOpen(true);
        dialog.open();

        updateHadoopDirLabelFromPreferences();
      } else if (e.getSource() == browse) {
        DirectoryDialog dialog = new DirectoryDialog(this.getShell());
        dialog
            .setMessage("Select a hadoop installation, containing hadoop-X-core.jar");
        dialog.setText("Select Hadoop Installation Directory");
        String directory = dialog.open();

        if (directory != null) {
          location.setText(directory);

          if (!validateHadoopLocation()) {
View Full Code Here

            gd = new GridData(GridData.FILL_HORIZONTAL);
            interpreterNoteText.setLayoutData(gd);

            interpreterNoteText.addSelectionListener(new SelectionListener() {
                public void widgetSelected(SelectionEvent e) {
                    PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null, idToConfig[0], null, null);
                    dialog.open();
                    //just to re-update it again
                    selectionListener.widgetSelected(null);
                }

                public void widgetDefaultSelected(SelectionEvent e) {
View Full Code Here

        return PydevPrefs.getPreferenceStore().getBoolean(USE_PYUNIT_VIEW);
    }

    public static void showPage() {
        String id = "org.python.pydev.prefs.pyunitPage";
        PreferenceDialog prefDialog = PreferencesUtil.createPreferenceDialogOn(null, id, null, null);
        prefDialog.open();
    }
View Full Code Here

                                AbstractInterpreterPreferencesPage.autoConfigureOnCreate = true;
                                //FALLTHROUGH

                            case PyDialogHelpers.INTERPRETER_MANUAL_CONFIG:

                                PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null,
                                        m.getPreferencesPageId(), null, null);
                                dialog.open();

                                break;
                        }
                    } finally {
                        AbstractInterpreterPreferencesPage.autoConfigureOnCreate = false;
View Full Code Here

                    Link link = new Link(topLevel, SWT.NONE);
                    link.setText("<a>Config...</a>");

                    link.addSelectionListener(new SelectionListener() {
                        public void widgetSelected(SelectionEvent e) {
                            PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null,
                                    "org.python.pydev.prefs.template", null, null);
                            dialog.open();
                            //Fill it after having the settings edited.
                            TemplatePersistenceData[] templateData = templateStore.getTemplateData(false);
                            if (templateData != null && templateData.length > 0) {
                                fillTemplateOptions(templateData, templateList);
                            } else {
View Full Code Here

          new String[]{IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL}, 0)
      {
        protected void buttonPressed(int buttonId) {
          super.buttonPressed(buttonId);
          if (buttonId == IDialogConstants.OK_ID){
            PreferenceDialog prefs = PreferencesUtil.createPreferenceDialogOn(
                shell, "org.vimplugin.preferences.VimPreferences", null, null);
            if (prefs != null){
              prefs.open();
            }
          }
        }
      };
      dialog.open();

      if (!plugin.gvimAvailable()) {
        throw new RuntimeException(plugin.getMessage("gvim.not.found"));
      }
    }

    IPreferenceStore prefs = plugin.getPreferenceStore();
    tabbed = prefs.getBoolean(PreferenceConstants.P_TABBED);
    embedded = prefs.getBoolean(PreferenceConstants.P_EMBED);
    // disabling documentListen until there is a really good reason to have,
    // cause it is by far the buggest part of vim's netbeans interface.
    documentListen = false; //plugin.gvimNbDocumentListenSupported();
    if (embedded){
      if (!plugin.gvimEmbedSupported()){
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.