Java 类org.eclipse.jface.preference.DirectoryFieldEditor 实例源码

项目:xstreamer    文件:TimerPreferencePage.java   
@Override
protected void createFieldEditors() {
    addField(new DirectoryFieldEditor(PreferenceConstants.TIMER_FILE_PATH, 
            "Timer output directory:", getFieldEditorParent()));

    addField(new StringFieldEditor(PreferenceConstants.TIMER_FILE, "Filename:", getFieldEditorParent()));

    addField(new SpacerFieldEditor(getFieldEditorParent()));

    addField(new LabelFieldEditor("Default Timer Settings", getFieldEditorParent()));

    StringFieldEditor hoursField = new StringFieldEditor(PreferenceConstants.TIMER_HOUR_DEFAULT, "Hour(s):", getFieldEditorParent());
    hoursField.setTextLimit(2);
    addField(hoursField);

    StringFieldEditor minsField = new StringFieldEditor(PreferenceConstants.TIMER_MINUTES_DEFAULT, "Minutes:", getFieldEditorParent());
    minsField.setTextLimit(2);
    addField(minsField);

    StringFieldEditor secField = new StringFieldEditor(PreferenceConstants.TIMER_SECONDS_DEFAULT, "Seconds:", getFieldEditorParent());
    secField.setTextLimit(2);
    addField(secField);
}
项目:ecle    文件:PrefPageSming.java   
/**
     * Creates the field editors. Field editors are abstractions of the common
     * GUI blocks needed to manipulate various types of preferences. Each field
     * editor knows how to save and restore itself.
     */
    public void createFieldEditors() {
        Composite parent = getFieldEditorParent();

        //Group grpPath = createGroup(getFieldEditorParent(), "Sming path definition");
        addField(new DirectoryFieldEditor(PrefKeys.Sming.PATH, "&Sming framework path:", parent));
//      addField(new DirectoryFieldEditor(PrefKeys.Path.COMPILER, "&Compiler path:", grpPath));
//      addField(new DirectoryFieldEditor(PrefKeys.Path.TOOLS, "&Tools path:", grpPath));   

        /*
        Group grpSerial = createGroup(parent, "General serial port settings");
        addField(new StringFieldEditor(PrefKeys.Serial.PORT, "Default port:", grpSerial));
        addField(new RadioGroupFieldEditor(PrefKeys.Serial.PARITY, "Parity", 6, PrefKeys.Serial.VPARITY, grpSerial));
        addField(new RadioGroupFieldEditor(PrefKeys.Serial.DATABITS, "Data bits", 6, PrefKeys.Serial.VDATABITS,
                grpSerial));
        addField(new RadioGroupFieldEditor(PrefKeys.Serial.STOPBITS, "Stop bits", 2, PrefKeys.Serial.VSTOPBITS,
                grpSerial));

        // addField(new BooleanFieldEditor(PrefKeys.P_BOOLEAN,
        // "&An example of a boolean preference", grpSerial));
        // addField(new StringFieldEditor(PrefKeys.P_STRING,
        // "A &text preference:", getFieldEditorParent()));
        this.adjustGridLayout();
        */
    }
项目:ecle    文件:PrefPageGeneral.java   
/**
 * Creates the field editors. Field editors are abstractions of the common
 * GUI blocks needed to manipulate various types of preferences. Each field
 * editor knows how to save and restore itself.
 */
public void createFieldEditors() {
    Composite parent = getFieldEditorParent();

    Group grpPath = createGroup(getFieldEditorParent(), "General path definition");
    addField(new DirectoryFieldEditor(PrefKeys.Path.SDK, "&SDK path:", grpPath));
    addField(new DirectoryFieldEditor(PrefKeys.Path.COMPILER, "&Compiler path:", grpPath));
    addField(new DirectoryFieldEditor(PrefKeys.Path.TOOLS, "&Tools path:", grpPath));

    Group grpSerial = createGroup(parent, "General serial port settings");
    addField(new StringFieldEditor(PrefKeys.Serial.PORT, "Default port:", grpSerial));

    RadioGroupFieldEditor rg1 = new RadioGroupFieldEditor(PrefKeys.Serial.PARITY, "Parity", 6,
            PrefKeys.Serial.VPARITY, grpSerial);
    addField(rg1);
    addField(new RadioGroupFieldEditor(PrefKeys.Serial.DATABITS, "Data bits", 6, PrefKeys.Serial.VDATABITS,
            grpSerial));
    addField(new RadioGroupFieldEditor(PrefKeys.Serial.STOPBITS, "Stop bits", 2, PrefKeys.Serial.VSTOPBITS,
            grpSerial));

}
项目:mytourbook    文件:DataTransferWizardPage.java   
/**
 * create field: raw data path
 * 
 * @param parent
 */
private void createUI14RawDataPath(final Composite parent) {

    /*
     * path to save raw tour data
     */
    _pathEditor = new DirectoryFieldEditor(
            ITourbookPreferences.DUMMY_FIELD,
            Messages.Import_Wizard_Label_auto_save_path,
            parent);

    _pathEditor.setPropertyChangeListener(new IPropertyChangeListener() {
        public void propertyChange(final PropertyChangeEvent event) {
            isPageValid();
        }
    });
}
项目:mytourbook    文件:PrefPagePeople.java   
/**
 * field: path to save raw tour data
 */
private void createUI_94_Field_RawDataPath(final Composite parent) {

    /*
     * editor: raw data path
     */
    _rawDataPathEditor = new DirectoryFieldEditor(
            ITourbookPreferences.DUMMY_FIELD,
            Messages.Pref_People_Label_DefaultDataTransferFilePath,
            parent);
    _rawDataPathEditor.setEmptyStringAllowed(true);
    _rawDataPathEditor.setValidateStrategy(StringFieldEditor.VALIDATE_ON_KEY_STROKE);

    final Label lblPath = _rawDataPathEditor.getLabelControl(parent);
    lblPath.setToolTipText(Messages.Pref_People_Label_DefaultDataTransferFilePath_Tooltip);

    _txtRawDataPath = _rawDataPathEditor.getTextControl(parent);
    _txtRawDataPath.addModifyListener(_defaultModifyListener);
}
项目:mondo-collab-framework    文件:MondoPreferencePage.java   
/**
 * Create contents of the preference page.
 */
@Override
protected void createFieldEditors() {

    serverAddress = new StringListEditor(MONDO_ADDRESSES_PROPERTY, "Server Addresses", getFieldEditorParent());
    extensions = new StringListEditor(MONDO_EXTENSIONS_PROPERTY, "Extensions", getFieldEditorParent());
    tempFolder = new DirectoryFieldEditor(MONDO_TEMP_PROPERTY, "Temp folder", getFieldEditorParent());
    enableLock = new BooleanFieldEditor(MONDO_ENABLE_PROPERTY, "Enable live-lock", getFieldEditorParent());
    lockUpdateDelay = new IntegerFieldEditor(MONDO_DELAY_PROPERTY, "Lock update delay [ms] (0 = manually)",
            getFieldEditorParent());
    lockUpdateDelay.setValidRange(0, 100000);


    addField(serverAddress);
    addField(extensions);
    addField(tempFolder);
    addField(enableLock);
    addField(lockUpdateDelay);
}
项目:eclipse-asveditor    文件:CommonPreferences.java   
@Override
    protected void createFieldEditors() {

        addField(new DirectoryFieldEditor("MAIN_PATH", "&Directory preference:",
                getFieldEditorParent()));
        addField(new BooleanFieldEditor("BOOLEAN_CREATE_BACKUP",
                "&Create backup file", getFieldEditorParent()));
/*
        addField(new RadioGroupFieldEditor("CHOICE",
                "An example of a multiple-choice preference", 1,
                new String[][] { { "&Choice 1", "choice1" },
                        { "C&hoice 2", "choice2" } }, getFieldEditorParent()));
*/      
        addField(new StringFieldEditor("BACKUP_SUFF", "A &backup suffix:",
                getFieldEditorParent()));
        addField(new StringFieldEditor("DEFAULT_LOCALE", "A &default resource locale:",
                getFieldEditorParent()));

    }
项目:elexis-3-base    文件:MedicsPreferencePage.java   
@Override
protected void createFieldEditors(){
    addField(new DirectoryFieldEditor(DOWNLOAD_DIR,
        Messages.MedicsPreferencePage_labelDownloadDir, getFieldEditorParent()));
    addField(new DirectoryFieldEditor(UPLOAD_DIR, Messages.MedicsPreferencePage_labelUploadDir,
        getFieldEditorParent()));
    addField(new DirectoryFieldEditor(IMED_DIR,
        Messages.MedicsPreferencePage_labelUploadDirimed, getFieldEditorParent()));
    addField(new DirectoryFieldEditor(ARCHIV_DIR, Messages.MedicsPreferencePage_labelArchivDir,
        getFieldEditorParent()));
    addField(new DirectoryFieldEditor(ERROR_DIR, Messages.MedicsPreferencePage_labelErrorDir,
        getFieldEditorParent()));
    addField(new StringFieldEditor(DOKUMENT_CATEGORY,
        Messages.MedicsPreferencePage_labelDocumentCategory, getFieldEditorParent()));
    addField(new StringFieldEditor(DELETE_ARCHIV_DAYS, "Archiv bereinigen (Tage)",
        getFieldEditorParent()));
}
项目:AgentWorkbench    文件:DummyPage.java   
@Override
protected void createFieldEditors() {
    addField(new DirectoryFieldEditor("PATH", "&Directory preference:", getFieldEditorParent()));
    addField(new BooleanFieldEditor("BOOLEAN_VALUE", "&An example of a boolean preference", getFieldEditorParent()));
    addField(new RadioGroupFieldEditor("CHOICE", "An example of a multiple-choice preference", 1, new String[][] { { "&Choice 1", "choice1" },
           { "C&hoice 2", "choice2" } }, getFieldEditorParent()));

    addField(new StringFieldEditor("MySTRING1", "A &text preference:",
               getFieldEditorParent()));
       addField(new StringFieldEditor("MySTRING2", "A &text preference:",
               getFieldEditorParent()));
}
项目:termsuite-ui    文件:GeneralPreferencePage.java   
@Override
    protected void createFieldEditors() {
//      addField(new ComboFieldEditor("prefCombo", "A combo field", new String[][]{{"display1", "value1"},{"display2", "value2"}}, getFieldEditorParent()));
//      addField(new ColorFieldEditor("prefColor", "Color for table items : ", getFieldEditorParent()));
//      addField(new BooleanFieldEditor("prefBoolean", "A boolean : ", getFieldEditorParent()));
//      addField(new DirectoryFieldEditor(TermSuiteUIPreferences.OUTPUT_DIRECTORY, "Output directory : ", getFieldEditorParent()));
        addField(new BooleanFieldEditor(TermSuiteUIPreferences.WRAP_TEXT, "Wrap text by default when viewing a document", getFieldEditorParent()));
        addField(new DirectoryFieldEditor(TermSuiteUIPreferences.OUTPUT_DIRECTORY, "Termsuite output directory", getFieldEditorParent()));

    }
项目:google-cloud-eclipse    文件:CloudSdkPreferenceArea.java   
@Override
public void propertyChange(PropertyChangeEvent event) {
  if (event.getProperty() == DirectoryFieldEditor.IS_VALID) {
    fireValueChanged(IS_VALID, event.getOldValue(), event.getNewValue());
  } else if (event.getProperty() == DirectoryFieldEditor.VALUE) {
    fireValueChanged(VALUE, event.getOldValue(), event.getNewValue());
  }
}
项目:eclipse-weblogic-plugin    文件:WeblogicPreferencePage.java   
/**
 * Creates the Weblogic Preferece page field editors. Field editors are abstractions of the common GUI blocks needed
 * to manipulate various types of preferences. Each field editor knows how to save and restore itself.
 * 
 * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
 */
@Override
public void createFieldEditors() {
    this.addField(new DirectoryFieldEditor(PREF_ORACLEHOME, WEBLOGIC_ORACLEHOME_LABEL, this.getFieldEditorParent()));
    this.addField(new DirectoryFieldEditor(PREF_WLHOME, WEBLOGIC_WLHOME_LABEL, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_DOMAINNAME, WEBLOGIC_DOMAINNAME_LABEL, 20, this.getFieldEditorParent()));
    this.addField(new DirectoryFieldEditor(PREF_DOMAINDIR, WEBLOGIC_DOMAINDIR_LABEL, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_SERVERNAME, WEBLOGIC_SERVERNAME_LABEL, 20, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_USERNAME, WEBLOGIC_USER_LABEL, 20, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_PASSWORD, WEBLOGIC_PASSWORD_LABEL, 20, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_HOSTNAME, WEBLOGIC_HOSTNAME_LABEL, 20, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_PORT, WEBLOGIC_PORT_LABEL, 10, this.getFieldEditorParent()));
}
项目:ermasterr    文件:ExtClassPathPreferencePage.java   
@Override
protected Control createContents(final Composite parent) {
    final Composite composite = new Composite(parent, SWT.NONE);

    final GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 3;

    composite.setLayout(gridLayout);

    extDir = new DirectoryFieldEditor("", ResourceString.getResourceString("label.ext.classpath"), composite);

    CompositeFactory.filler(composite, 2);
    downloadButton = createButton(composite, "Download");

    downloadButton.addSelectionListener(new SelectionAdapter() {

        /**
         * {@inheritDoc}
         */
        @Override
        public void widgetSelected(final SelectionEvent e) {
            download();
        }
    });

    extDir.setFocus();

    setData();

    return composite;
}
项目:ermaster-k    文件:ExtClassPathPreferencePage.java   
@Override
protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);

    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 3;

    composite.setLayout(gridLayout);

    this.extDir = new DirectoryFieldEditor("",
            ResourceString.getResourceString("label.ext.classpath"),
            composite);

    CompositeFactory.filler(composite, 2);
    this.downloadButton = this.createButton(composite, "Download");

    this.downloadButton.addSelectionListener(new SelectionAdapter() {

        /**
         * {@inheritDoc}
         */
        @Override
        public void widgetSelected(SelectionEvent e) {
            download();
        }
    });

    this.extDir.setFocus();

    this.setData();

    return composite;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:MapReducePreferencePage.java   
/**
 * Creates the field editors. Field editors are abstractions of the common
 * GUI blocks needed to manipulate various types of preferences. Each field
 * editor knows how to save and restore itself.
 */
@Override
public void createFieldEditors() {
  addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH,
      "&Hadoop installation directory:", getFieldEditorParent()));

}
项目:hadoop-EAR    文件:MapReducePreferencePage.java   
/**
 * Creates the field editors. Field editors are abstractions of the common
 * GUI blocks needed to manipulate various types of preferences. Each field
 * editor knows how to save and restore itself.
 */
@Override
public void createFieldEditors() {
  addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH,
      "&Hadoop installation directory:", getFieldEditorParent()));

}
项目:SecurityTesting    文件:ZAPPreferencePage.java   
/**
 * Add the ZAP preferences to the preferences page.
 */
@Override
protected void createFieldEditors() {
    FileFieldEditor zapJarLocation = new FileFieldEditor(ZAP_JAR_LOCATION, "ZAP JAR Location:",
            getFieldEditorParent());
    zapJarLocation.setEmptyStringAllowed(false);
    addField(zapJarLocation);

    DirectoryFieldEditor zapSessionDirectory = new DirectoryFieldEditor(ZAP_SESSION_DIRECTORY,
            "ZAP Session Directory", getFieldEditorParent());
    zapSessionDirectory.setEmptyStringAllowed(false);
    addField(zapSessionDirectory);

    StringFieldEditor zapSessionName = new StringFieldEditor(ZAP_SESSION_NAME, "ZAP Session Name",
            getFieldEditorParent());
    zapSessionName.setEmptyStringAllowed(false);
    addField(zapSessionName);

    IntegerFieldEditor zapProxyPort = new IntegerFieldEditor(ZAP_PROXY_PORT, "ZAP Proxy Port:",
            getFieldEditorParent());
    zapProxyPort.setValidRange(0, 99999);
    zapProxyPort.setEmptyStringAllowed(false);
    addField(zapProxyPort);

    StringFieldEditor zapApiKey = new StringFieldEditor(ZAP_API_KEY, "ZAP API Key", getFieldEditorParent());
    zapApiKey.setEmptyStringAllowed(false);
    addField(zapApiKey);
}
项目:depan    文件:AnalysisPreferencesPage.java   
@Override
protected void createFieldEditors() {
  Composite parent = getFieldEditorParent();

  FileFieldEditor executable = new FileFieldEditor(
      AnalysisPreferenceIds.MVN_ANALYSIS_EXECUTABLE,
      "Maven Executable", 
      true, parent);
  executable.setEmptyStringAllowed(false);

  BooleanFieldEditor systemjava = new BooleanFieldEditor(
      AnalysisPreferenceIds.MVN_ANALYSIS_SYSTEMJAVA,
      "Use System JAVA_HOME",
      BooleanFieldEditor.SEPARATE_LABEL, parent);

  final DirectoryFieldEditor javahome = new DirectoryFieldEditor(
      AnalysisPreferenceIds.MVN_ANALYSIS_JAVAHOME,
      "JAVA_HOME", parent);

  StringFieldEditor effectivepom = new StringFieldEditor(
      AnalysisPreferenceIds.MVN_ANALYSIS_EFFECTIVEPOM,
      "Maven Effective POM command", parent);
  effectivepom.setEmptyStringAllowed(false);

  addField(executable);
  addField(systemjava);
  addField(javahome);
  addField(effectivepom);
}
项目:depan    文件:AnalysisPreferencesPage.java   
@Override
protected void createFieldEditors() {
  Composite parent = getFieldEditorParent();

  FileFieldEditor executable = new FileFieldEditor(
      AnalysisPreferenceIds.MVN_ANALYSIS_EXECUTABLE,
      "Maven Executable", 
      true, parent);
  executable.setEmptyStringAllowed(false);

  BooleanFieldEditor systemjava = new BooleanFieldEditor(
      AnalysisPreferenceIds.MVN_ANALYSIS_SYSTEMJAVA,
      "Use System JAVA_HOME",
      BooleanFieldEditor.SEPARATE_LABEL, parent);

  final DirectoryFieldEditor javahome = new DirectoryFieldEditor(
      AnalysisPreferenceIds.MVN_ANALYSIS_JAVAHOME,
      "JAVA_HOME", parent);

  StringFieldEditor effectivepom = new StringFieldEditor(
      AnalysisPreferenceIds.MVN_ANALYSIS_EFFECTIVEPOM,
      "Maven Effective POM command", parent);
  effectivepom.setEmptyStringAllowed(false);

  addField(executable);
  addField(systemjava);
  addField(javahome);
  addField(effectivepom);
}
项目:velocity-edit    文件:LibraryPreferencePage.java   
/**
 * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
 */
protected void createFieldEditors()
{
    DirectoryFieldEditor macroPath = new DirectoryFieldEditor(IPreferencesConstants.LIBRARY_PATH, VelocityPlugin.getMessage(PREFIX + "path"), getFieldEditorParent());
    addField(macroPath);
    LibraryEditor library = new LibraryEditor(IPreferencesConstants.LIBRARY_LIST, VelocityPlugin.getMessage(PREFIX + "libraryList"), macroPath, getFieldEditorParent());
    addField(library);
}
项目:JFaceUtils    文件:FieldEditorFactory.java   
protected DirectoryFieldEditor createDirectoryFieldEditor(final String name, final String label, final Composite parent, final FieldEditorDetails details) {
    final DirectoryFieldEditor fieldEditor = new DirectoryFieldEditor(name, label, parent);
    if (details != null) {
        if (details.getTextLimit() != null) {
            fieldEditor.setTextLimit(details.getTextLimit());
        }
        if (details.getEmptyStringAllowed() != null) {
            fieldEditor.setEmptyStringAllowed(details.getEmptyStringAllowed());
        }
    }
    return fieldEditor;
}
项目:ermaster-nhit    文件:ExtClassPathPreferencePage.java   
@Override
protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);

    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 3;

    composite.setLayout(gridLayout);

    this.extDir = new DirectoryFieldEditor("",
            ResourceString.getResourceString("label.ext.classpath"),
            composite);

    CompositeFactory.filler(composite, 2);
    this.downloadButton = this.createButton(composite, "Download");

    this.downloadButton.addSelectionListener(new SelectionAdapter() {

        /**
         * {@inheritDoc}
         */
        @Override
        public void widgetSelected(SelectionEvent e) {
            download();
        }
    });

    this.extDir.setFocus();

    this.setData();

    return composite;
}
项目:hadoop-on-lustre    文件:MapReducePreferencePage.java   
/**
 * Creates the field editors. Field editors are abstractions of the common
 * GUI blocks needed to manipulate various types of preferences. Each field
 * editor knows how to save and restore itself.
 */
@Override
public void createFieldEditors() {
  addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH,
      "&Hadoop installation directory:", getFieldEditorParent()));

}
项目:XRobot    文件:PreferencePage.java   
/**
 * Creates the field editors. Field editors are abstractions of the common
 * GUI blocks needed to manipulate various types of preferences. Each field
 * editor knows how to save and restore itself.
 */
@Override
public void createFieldEditors() {
    Composite parent = getFieldEditorParent();
    initializeDialogUnits(parent);

    // EV3_HOME
    addField(new DirectoryFieldEditor(PreferenceConstants.KEY_EV3_HOME,
            "&EV3_HOME:", parent));

    Composite p2 = newParent(parent, 3);
    addField(new BooleanFieldEditor(PreferenceConstants.KEY_SEPARATE_JVM,
            "&Run Tools in separate JVM", p2));

    addField(new BooleanFieldEditor(PreferenceConstants.KEY_SSH_SCP,
            "&Use ssh and scp", p2));

    Group g = createGroup(parent, 2, "Defaults for run configurations:");

    // connect to named EV3?
    addField(new BooleanFieldEditor(PreferenceConstants.KEY_TARGET_CONNECT_BY_NAME,
            "Connect to &named brick", newParent(g, 1)));
    addField(new StringFieldEditor(PreferenceConstants.KEY_TARGET_BRICK_NAME,
            "&Name", newParentF(g, 1)));

    g = createGroup(parent, 2, "Defaults for run mode");

    addField(new BooleanFieldEditor(PreferenceConstants.KEY_NORMAL_RUN_AFTER_UPLOAD,
            "&Run program after upload", newParent(g, 1)));

}
项目:RDFS    文件:MapReducePreferencePage.java   
/**
 * Creates the field editors. Field editors are abstractions of the common
 * GUI blocks needed to manipulate various types of preferences. Each field
 * editor knows how to save and restore itself.
 */
@Override
public void createFieldEditors() {
  addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH,
      "&Hadoop installation directory:", getFieldEditorParent()));

}
项目:maru    文件:MainPage.java   
/**
 * Creates the field editors. Field editors are abstractions of
 * the common GUI blocks needed to manipulate various types
 * of preferences. Each field editor knows how to save and
 * restore itself.
 */
@Override
public void createFieldEditors()
{
    addField(new FileFieldEditor(PreferenceConstants.P_FILE, "&File preference:", false, StringButtonFieldEditor.VALIDATE_ON_FOCUS_LOST, getFieldEditorParent()));
    addField(new PathEditor(PreferenceConstants.P_PATH2, "&Path preference:", "Chooser Label", getFieldEditorParent()));
    addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH, "&Directory preference:", getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_BOOLEAN, "&An example of a boolean preference", getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(PreferenceConstants.P_CHOICE, "An example of a multiple-choice preference", 1, new String[][] { { "&Choice 1", "choice1" }, { "C&hoice 2", "choice2" } }, getFieldEditorParent()));
    addField(new StringFieldEditor(PreferenceConstants.P_STRING, "A &text preference:", getFieldEditorParent()));
}
项目:hadoop-0.20    文件:MapReducePreferencePage.java   
/**
 * Creates the field editors. Field editors are abstractions of the common
 * GUI blocks needed to manipulate various types of preferences. Each field
 * editor knows how to save and restore itself.
 */
@Override
public void createFieldEditors() {
  addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH,
      "&Hadoop installation directory:", getFieldEditorParent()));

}
项目:Pydev    文件:JyScriptingPreferencesPage.java   
@Override
public void createFieldEditors() {
    Composite p = getFieldEditorParent();
    addField(new BooleanFieldEditor(SHOW_SCRIPTING_OUTPUT,
            "Show the output given from the scripting to some console?", p));
    addField(new BooleanFieldEditor(LOG_SCRIPTING_ERRORS, "Show errors from scripting in the Error Log?", p));
    DirectoryFieldEditor fileField = new DirectoryFieldEditor(ADDITIONAL_SCRIPTING_LOCATION,
            "Location of additional jython scripts:", p);
    addField(fileField);
}
项目:hanoi-hadoop-2.0.0-cdh    文件:MapReducePreferencePage.java   
/**
 * Creates the field editors. Field editors are abstractions of the common
 * GUI blocks needed to manipulate various types of preferences. Each field
 * editor knows how to save and restore itself.
 */
@Override
public void createFieldEditors() {
  addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH,
      "&Hadoop installation directory:", getFieldEditorParent()));

}
项目:mapreduce-fork    文件:MapReducePreferencePage.java   
/**
 * Creates the field editors. Field editors are abstractions of the common
 * GUI blocks needed to manipulate various types of preferences. Each field
 * editor knows how to save and restore itself.
 */
@Override
public void createFieldEditors() {
  addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH,
      "&Hadoop installation directory:", getFieldEditorParent()));

}
项目:elexis-3-base    文件:PreferencePage.java   
@Override
protected void createFieldEditors(){
    addField(new FileFieldEditor(JAR_PATH, "OpenMedical Bibliothek (JMedTransferO.jar)",
        getFieldEditorParent()));
    addField(new FileFieldEditor(INI_PATH, "OpenMedical Konfiguration (MedTransfer.ini)",
        getFieldEditorParent()));
    addField(new DirectoryFieldEditor(DL_DIR, "Download Verzeichnis", getFieldEditorParent()));
}
项目:elexis-3-base    文件:Preferences.java   
@Override
protected void createFieldEditors(){
    DirectoryFieldEditor dirFieldEditor =
        new DirectoryFieldEditor(PREF_DIR, Messages.Preferences_directory,
            getFieldEditorParent());
    dirFieldEditor.getTextControl(getFieldEditorParent()).setEditable(false);
    addField(dirFieldEditor);
}
项目:elexis-3-base    文件:PreferencePage.java   
@Override
protected void createFieldEditors(){
    addField(new FileFieldEditor(JAR_PATH, Messages.PreferencePage_JMedTrasferJar,
        getFieldEditorParent()));
    addField(new FileFieldEditor(INI_PATH, Messages.PreferencePage_JMedTrasferJni,
        getFieldEditorParent()));
    addField(new DirectoryFieldEditor(DL_DIR, Messages.PreferencePage_DownloadDir,
        getFieldEditorParent()));
}
项目:elexis-3-base    文件:PreferencePage.java   
@Override
protected void createFieldEditors(){
    addField(new FileFieldEditor(JAR_PATH, Messages.PreferencePage_JMedTrasferJar,
        getFieldEditorParent()));
    addField(new FileFieldEditor(INI_PATH, Messages.PreferencePage_JMedTrasferJni,
        getFieldEditorParent()));
    addField(new DirectoryFieldEditor(DL_DIR, Messages.PreferencePage_DownloadDir,
        getFieldEditorParent()));
}
项目:elexis-3-base    文件:PreferencePage.java   
@Override
protected void createFieldEditors(){
    addField(new FileFieldEditor(JAR_PATH, Messages.PreferencePage_JMedTrasferJar,
        getFieldEditorParent()));
    addField(new FileFieldEditor(INI_PATH, Messages.PreferencePage_JMedTrasferJni,
        getFieldEditorParent()));
    addField(new DirectoryFieldEditor(DL_DIR, Messages.PreferencePage_DownloadDir,
        getFieldEditorParent()));
}
项目:elexis-3-base    文件:Preferences.java   
@Override
protected void createFieldEditors(){
    addField(new DirectoryFieldEditor(PREF_TEMPLATEBASE, "Schablonen-Verzeichnis",
        getFieldEditorParent()));
    Label i2 = new Label(getFieldEditorParent(), SWT.WRAP);
    i2.setText("Geben Sie bitte an, wie das Dokument nach\ndem Fertigstellen archiviert werden soll");
    i2.setLayoutData(SWTHelper.getFillGridData(2, true, 1, false));
    addField(new BooleanFieldEditor(PREF_DOSAVE, "Dokument archivieren", getFieldEditorParent()));
    addField(new StringFieldEditor(PREF_CATEGORY, "Docmanager-Kategorie",
        getFieldEditorParent()));

}
项目:elexis-3-base    文件:Preferences.java   
@Override
protected void createFieldEditors(){
    addField(new DirectoryFieldEditor(CFG_DIRECTORY, Messages.Prefs_ImportDirectory,
        getFieldEditorParent()));
    addField(new BooleanFieldEditor(HL7Parser.CFG_IMPORT_ENCDATA,
        Messages.Prefs_ImportAttachedFiles, getFieldEditorParent()));
    addField(new BooleanFieldEditor(CFG_DIRECTORY_AUTOIMPORT,
        "Verzeichnis überwachen und automatisch importieren", getFieldEditorParent()));
}
项目:elexis-3-base    文件:PreferencePage.java   
@Override
protected void createFieldEditors(){
    addField(new FileFieldEditor(JAR_PATH, Messages.PreferencePage_JMedTrasferJar,
        getFieldEditorParent()));
    addField(new FileFieldEditor(INI_PATH, Messages.PreferencePage_JMedTrasferJni,
        getFieldEditorParent()));
    addField(new DirectoryFieldEditor(DL_DIR, Messages.PreferencePage_DownloadDir,
        getFieldEditorParent()));
}
项目:elexis-3-base    文件:PreferencePage.java   
@Override
protected void createFieldEditors(){
    addField(new FileFieldEditor(JAR_PATH, Messages.PreferencePage_JMedTrasferJar,
        getFieldEditorParent()));
    addField(new FileFieldEditor(INI_PATH, Messages.PreferencePage_JMedTrasferJni,
        getFieldEditorParent()));
    addField(new DirectoryFieldEditor(DL_DIR, Messages.PreferencePage_DownloadDir,
        getFieldEditorParent()));
}
项目:elexis-3-base    文件:PreferencePage.java   
@Override
protected void createFieldEditors(){
    addField(new FileFieldEditor(JAR_PATH, "OpenMedical Bibliothek (JMedTransferO.jar)",
        getFieldEditorParent()));
    addField(new FileFieldEditor(INI_PATH, "OpenMedical Konfiguration (MedTransfer.ini)",
        getFieldEditorParent()));
    addField(new DirectoryFieldEditor(DL_DIR, "Download Verzeichnis", getFieldEditorParent()));
}