Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.PreferenceDialog


      IStatus status = internalStartApplication(shell, officeApplication);
      if (status.getSeverity() == IStatus.ERROR) {
        if (MessageDialog.openQuestion(shell,
            Messages.NOAUIPlugin_dialog_change_preferences_title,
            Messages.NOAUIPlugin_dialog_change_preferences_message)) {
          PreferenceDialog preferenceDialog = PreferencesUtil.createPreferenceDialogOn(shell,
              LocalOfficeApplicationPreferencesPage.PAGE_ID,
              null,
              null);
          if (preferenceDialog.open() == Window.CANCEL)
            return Status.CANCEL_STATUS;
          else
            continue;
        }
      }
View Full Code Here


   
    public static int openPreferencePage(String[] pageIds) {
        if(pageIds == null || pageIds.length == 0) {
            throw new IllegalArgumentException("Try to open preference with null ID"); //$NON-NLS-1$
        }
        PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null, pageIds[0],  pageIds, null);
        return dialog.open();
    }
View Full Code Here

    }

    public static int openPreferencePage(String pageId) {
        PreferenceManager pm = WorkbenchPlugin.getDefault().getPreferenceManager();
        if (pm != null) {
            PreferenceDialog d = new WorkbenchPreferenceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), pm);
            d.setSelectedNode(pageId);
            d.create();
            return d.open();  
        }
        return Window.CANCEL;}
View Full Code Here

        final String labelTitle = "Label";
        PreferenceNode labelNode = new PreferenceNode(labelTitle);
        labelNode.setPage(new SeriesLabelPage(this, resources, labelTitle));
        manager.addTo(chartTitle + "." + seriesTitle, labelNode);

        PreferenceDialog dialog = new PreferenceDialog(getShell(), manager);
        dialog.create();
        dialog.getShell().setText("Properties");
        dialog.getTreeViewer().expandAll();
        dialog.open();
    }
View Full Code Here

        MessageDialog dialog = new MessageDialog(shell, "Nodeclipse", null, message,
            MessageDialog.ERROR, new String[] { "Open Prefrences ...", "Cancel" }, 0);
        int result = dialog.open();
        if (result == 0) {
          PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(shell,
            PreferenceConstants.PREFERENCES_PAGE, null, null);
          if (pref != null)
            pref.open();
        }
      }
    });
  }
View Full Code Here

      }
    };
  }

  protected static void runAction(IBreakpoint breakpoint, IShellProvider shell) {
    PreferenceDialog propertyDialog = PreferencesUtil.createPropertyDialogOn(
        shell.getShell(), breakpoint, (String) null, (String[]) null, null);

    propertyDialog.open();
  }
View Full Code Here

        MessageDialog dialog = new MessageDialog(shell, "Nodeclipse", null, message,
            MessageDialog.ERROR, new String[] { "Open Prefrences ...", "Cancel" }, 0);
        int result = dialog.open();
        if (result == 0) {
          PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(shell,
              preferencesPage, null, null); //+
          if (pref != null)
            pref.open();
        }
      }
    });
  }
View Full Code Here

            {
                public void widgetSelected( SelectionEvent e )
                {
                    String certificateValidationPreferencePageId = "org.apache.directory.studio.connection.preferences.CertificateValidationPreferencePage"; //$NON-NLS-1$

                    PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn( Display.getDefault()
                        .getActiveShell(), certificateValidationPreferencePageId, new String[]
                        { certificateValidationPreferencePageId }, null );
                    dialog.open();
                }
            } );
        }

        String[] networkProviders = new String[]
View Full Code Here

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

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

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

        Label horizontalLine = new Label(headerComposite, SWT.SEPARATOR | SWT.HORIZONTAL);
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.