Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.FileFieldEditor


                super.doFillIntoGrid(parent, 3);
                adjustForNumColumns(3);
            }
        });

        addField(new FileFieldEditor(PEP8_FILE_LOCATION, "Location of pep8.py", true, p) {

            @Override
            protected void doFillIntoGrid(Composite parent, int numColumns) {
                super.doFillIntoGrid(parent, numColumns);
                Text textField = getTextControl();
View Full Code Here


        final Composite p = getFieldEditorParent();

        addField(new BooleanFieldEditor(USE_PYLINT, "Use pylint?", p));
        addField(new BooleanFieldEditor(USE_CONSOLE, "Redirect PyLint output to console?", p));
        addField(new IntegerFieldEditor(MAX_PYLINT_DELTA, "Max simultaneous processes for PyLint?", p));
        FileFieldEditor fileField = new FileFieldEditor(PYLINT_FILE_LOCATION, "Location of pylint (lint.py):", true, p);
        addField(fileField);

        addField(new RadioGroupFieldEditor(SEVERITY_FATAL, "FATAL Severity", COLS, LABEL_AND_VALUE, p, true));

        addField(new RadioGroupFieldEditor(SEVERITY_ERRORS, "ERRORS Severity", COLS, LABEL_AND_VALUE, p, true));
View Full Code Here

          getFieldEditorParent()));
    addField(new StringFieldEditor(
          PreferenceConstants.P_PORT,
          plugin.getMessage("preference.port"),
          getFieldEditorParent()));
    addField(new FileFieldEditor(
          PreferenceConstants.P_GVIM,
          plugin.getMessage("preference.gvim"),
          true,
          getFieldEditorParent()));
    addField(new StringFieldEditor(
View Full Code Here

  // return new Path(theEditor.getStringValue()).append(mySuffix).toString();
    }

    public MyDirectoryFieldEditor(String name, String labelText, Composite parent) {// , String suffix) {
  if (Platform.getOS().equals(Platform.OS_MACOSX)) {
      theEditor = new FileFieldEditor(name, labelText, parent);
  } else {
      theEditor = new DirectoryFieldEditor(name, labelText, parent);
  }
  // mySuffix = suffix;
    }
View Full Code Here

   
    GridLayoutFactory.fillDefaults().spacing(6, 2).margins(6, 4).applyTo(toolGroup);
  }
 
  protected void createDaemonPathFieldEditor(Group group) {
    addField(new FileFieldEditor(
      DaemonEnginePreferences.DAEMON_PATH.key, getDaemonToolName() + " path:", group));
  }
View Full Code Here

    GridLayoutFactory.fillDefaults().margins(10, 4).applyTo(group);

    fieldParent = new Composite(group, SWT.NONE);
    GridDataFactory.swtDefaults().grab(true, false).align(SWT.FILL, SWT.TOP).applyTo(fieldParent);

    addField(compilerEditor = new FileFieldEditor(GoEnvironmentPrefs.COMPILER_PATH.key,
      "Go &tool path (go):", fieldParent));

    addField(formatterEditor = new FileFieldEditor(GoEnvironmentPrefs.FORMATTER_PATH.key,
        "Go &formatter (gofmt):", fieldParent));

    addField(documentorEditor = new FileFieldEditor(GoEnvironmentPrefs.DOCUMENTOR_PATH.key,
        "Go &documentor (godoc):", fieldParent));
   
  }
View Full Code Here

   * the common GUI blocks needed to manipulate various types
   * of preferences. Each field editor knows how to save and
   * restore itself.
   */
  public void createFieldEditors() {
    addField(new FileFieldEditor(PreferenceConstants.P_LOG_FILE,
        "Log file:", getFieldEditorParent()));
    addField(new FileFieldEditor(PreferenceConstants.P_XPATH_FILE,
        "Input xpaths file:", getFieldEditorParent()));
    addField(new ComboFieldEditor(PreferenceConstants.P_LOG_LEVEL,
        "Log level:", PreferenceConstants.P_LEVEL_CHOICES, getFieldEditorParent()));
  }
View Full Code Here

        "Disable default listeners", //$NON-NLS-1$
        SWT.NONE,
        parentComposite);

    // XML template
    m_xmlTemplateFile = new FileFieldEditor(TestNGPluginConstants.S_XML_TEMPLATE_FILE,
        "Template XML file:", false /* no absolute */,
        StringButtonFieldEditor.VALIDATE_ON_FOCUS_LOST,
        parentComposite);
    m_xmlTemplateFile.setEmptyStringAllowed(true);
    m_xmlTemplateFile.fillIntoGrid(parentComposite, 3);
View Full Code Here

TOP

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

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.