Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.PreferenceDialog


    workspaceDefaultButton.addSelectionListener(selectionListener);

    configureVersionsLink.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(new SameShellProvider(versionCombo).getShell(), "gwtVersionsPreferencePage", new String[] { "gwtVersionsPreferencePage", "mainPreferencePage" }, null);
        if (dialog.open() == Window.OK) {
          versionCombo.removeAll();
          initData();
          update();
        }
View Full Code Here


   
    Button setButton = new Button(composite, SWT.PUSH);
    setButton.setText("Set...");
    setButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getContainer().getShell(), "mainPreferencePage", null, null);
        dialog.open();
        locationText.setText(Preferences.getString(Constants.GWT_HOME_PREFERENCE));
        updateStatus();
      }
    });
   
View Full Code Here

   
    Button setButton = new Button(composite, SWT.PUSH);
    setButton.setText("Set...");
    setButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getContainer().getShell(), "mainPreferencePage", null, null);
        dialog.open();
        locationText.setText(Preferences.getString(Constants.GWT_HOME_PREFERENCE));
        updateStatus();
      }
    });
   
View Full Code Here

            MessageDialog
                .openError(
                    Display.getCurrent().getActiveShell(),
                    "Wrong user id",
                    "You should setup correct user id before using AppWrench with production server.");
            PreferenceDialog createPreferenceDialogOn = org.eclipse.ui.dialogs.PreferencesUtil
                .createPreferenceDialogOn(
                    Display.getCurrent().getActiveShell(),
                    "com.onpositive.gae.tools.core.license",
                    new String[] {}, null);
            createPreferenceDialogOn.open();
          }
        });
        userId = getUserId();
        if (userId==null||userId.trim().length()!=0) {
          return true;
View Full Code Here

        page.setElement(project);
        PreferenceManager mgr = new PreferenceManager();
        IPreferenceNode node = new PreferenceNode("1", page);

        mgr.addToRoot(node);
        PreferenceDialog dialog = new PreferenceDialog(Display
            .getDefault().getActiveShell(), mgr);
        dialog.create();
        dialog.setMessage(page.getTitle());
        dialog.open();
      }

    });

  }
View Full Code Here

import org.eclipse.ui.dialogs.PreferencesUtil;

public class OpenSarosPreferencesHandler extends AbstractHandler {

    public Object execute(ExecutionEvent event) throws ExecutionException {
        PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(null,
            "de.fu_berlin.inf.dpp.preferences", null, null);
        if (pref != null)
            pref.open();

        return null;
    }
View Full Code Here

    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

    return composite;
  }

  private void linkClicked() {
    String pageId = "org.eclipse.ui.preferencePages.ContentTypes"; //$NON-NLS-1$
    PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(), pageId, new String[]{pageId}, null);
    dialog.open();
  }
View Full Code Here

    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

        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

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.