Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.StringButtonFieldEditor


  public HudsonPreferencesPage() {
    super(FieldEditorPreferencePage.GRID);
  }

  protected void createFieldEditors() {
    addField(new StringButtonFieldEditor(Activator.PREF_BASE_URL, "Hudson base url", getFieldEditorParent()) {
      {
        setChangeButtonText("Check url");
      }
      protected String changePressed() {
        try {
View Full Code Here


   
    Composite extensionsComposite = new Composite(pageComposite, SWT.FILL);
    extensionsComposite.setLayout(pageLayout);
    extensionsComposite.setLayoutData(new GridData(GridData.FILL,GridData.CENTER,true,false,2,1));
   
    extensionEditor = new StringButtonFieldEditor(PreferenceConstants.P_SEARCH_EXTENSIONS, "", extensionsComposite) {
      protected String changePressed() {
        String exts = this.getStringValue();
        exts = exts.replace(" ", "");
       
        List<String> extList = Arrays.asList(exts.split(","));
View Full Code Here

   
    addBoolField(PreferenceConstants.P_SHOW_FULL_PATH, "Show full file path in results");
   
    addBoolField(PreferenceConstants.P_DIALOG_ON_SHORTCUT, "Open search dialog with shortcut key (Ctrl+Alt+I)");
   
    StringButtonFieldEditor extensions = new ExtensionsFieldEditor(getFieldEditorParent())
    extensions.setChangeButtonText("...");
    extensions.setEmptyStringAllowed(true);
    addField(extensions);
   
    addBoolField(PreferenceConstants.P_INDEX_EMPTY_EXTENSION, "Index files without extension");
   
    BooleanFieldEditor indexJars = new BooleanFieldEditor(PreferenceConstants.P_INDEX_ARCHIVES, "Index JAR Source Attachements (beta)", getFieldEditorParent());
View Full Code Here

TOP

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

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.