Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.StringFieldEditor


   * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
   */
  public void createFieldEditors() {
    addField(new FileFieldEditor(Preferences.PREF_EOGENERATOR_PATH, PreferencesMessages.getString("Preferences.EOGeneratorPath.Label"), getFieldEditorParent()));
    addField(new DirectoryFieldEditor(Preferences.PREF_EOGENERATOR_TEMPLATE_DIR, PreferencesMessages.getString("Preferences.EOGeneratorTemplateDir.Label"), getFieldEditorParent()));
    addField(new StringFieldEditor(Preferences.PREF_EOGENERATOR_JAVA_TEMPLATE, PreferencesMessages.getString("Preferences.EOGeneratorJavaTemplate.Label"), getFieldEditorParent()));
    addField(new StringFieldEditor(Preferences.PREF_EOGENERATOR_SUBCLASS_JAVA_TEMPLATE, PreferencesMessages.getString("Preferences.EOGeneratorSubclassJavaTemplate.Label"), getFieldEditorParent()));
    addField(new BooleanFieldEditor(Preferences.PREF_EOGENERATOR_JAVA_14, PreferencesMessages.getString("Preferences.EOGeneratorJava14.Label"), getFieldEditorParent()));
  }
View Full Code Here


public class Page extends FieldEditorPreferencePage implements
        IWorkbenchPreferencePage {

    @Override
    protected void createFieldEditors() {
        addField(new StringFieldEditor(Activator.IP_ADDRESS_SETTING,
                "&IP address of device:",
                getFieldEditorParent()));
        addField(new StringFieldEditor(Activator.PORT_NUMBER_SETTING,
                "&Port number:",
                getFieldEditorParent()));
    }
View Full Code Here

  public static final String FILTER_REGEX = "filterRegex";
  public static final String WORKSPACE_MATCHES = "workspaceMatches";

  @Override
  protected void createFieldEditors() {
    addField(new StringFieldEditor(BASE_URL, "{OpenGrok base URL",
        getFieldEditorParent()));

    addField(new StringFieldEditor(USERNAME,
        "Username for Basic Authentication (optional)", getFieldEditorParent()));

    addField(new StringFieldEditor(PASSWORD,
        "Password for Basic Authentication (optional)", getFieldEditorParent()) {
      @Override
      protected void doFillIntoGrid(Composite parent, int numColumns) {
        super.doFillIntoGrid(parent, numColumns);
        getTextControl().setEchoChar('*');
 
View Full Code Here

    //TODO show maven version in this Preference Page
    mavenHomeToUse = new DirectoryFieldEditor(MavenConstants.MAVEN_HOME_TO_USE, "Maven home to use:", getFieldEditorParent());
    addField(mavenHomeToUse);
    javaHomeToUse = new DirectoryFieldEditor(MavenConstants.MAVEN_JAVA_HOME_TO_USE, "alternative JAVA_HOME to use:", getFieldEditorParent());
    addField(javaHomeToUse);
    mavenJvmOpts = new StringFieldEditor(MavenConstants.MAVEN_OPTS, "JVM options MAVEN_OPTS:", getFieldEditorParent());
    addField(mavenJvmOpts);
   
    mavenOptions = new StringFieldEditor(MavenConstants.MAVEN_OPTIONS, "Maven options (mvn -h):", getFieldEditorParent());
    addField(mavenOptions);
    /*
    mavenGoal1 = new StringFieldEditor(MavenConstants.MAVEN_GOAL1, "Maven goal1:", getFieldEditorParent());
    addField(mavenGoal1);
    mavenGoal2 = new StringFieldEditor(MavenConstants.MAVEN_GOAL2, "Maven goal2:", getFieldEditorParent());
    addField(mavenGoal2);
    */
    mavenOptionShowVersion = new BooleanFieldEditor(MavenConstants.MAVEN_OPTION_SHOW_VERSION,"-V, --show-version Display version information without stopping build", getFieldEditorParent());
        addField(mavenOptionShowVersion);
        mavenOptionDebug = new BooleanFieldEditor(MavenConstants.MAVEN_OPTION_DEBUG,"-X Debug  (Produce execution debug output)", getFieldEditorParent());
        addField(mavenOptionDebug);
        mavenOptionQuiet = new BooleanFieldEditor(MavenConstants.MAVEN_OPTION_QUIET,"-q Quiet  (Quiet output - only show errors)", getFieldEditorParent());
        addField(mavenOptionQuiet);
        mavenOptionForcedDependenciesUpdate = new BooleanFieldEditor(MavenConstants.MAVEN_OPTION_FORCED_DEPENDENCIES_UPDATE, "-U Forces a check for updated releases and snapshots on remote repositories", getFieldEditorParent());
        addField(mavenOptionForcedDependenciesUpdate);
    mavenOptionOffline = new BooleanFieldEditor(MavenConstants.MAVEN_OPTION_OFFLINE, "-o Offline  (Work offline)", getFieldEditorParent());
        addField(mavenOptionOffline);
        mavenOptionTestSkip = new BooleanFieldEditor(MavenConstants.MAVEN_OPTION_TEST_SKIP,"-Dmaven.test.skip=true  (skip unit testing)", getFieldEditorParent());
        if (isWindows) mavenOptionTestSkip.setEnabled(false, getFieldEditorParent());
        addField(mavenOptionTestSkip);

        mavenOptionAlternativeSettings = new FileFieldEditor(MavenConstants.MAVEN_OPTION_ALTERNATIVE_SETTINGS, "-s Alternative settings.xml:", getFieldEditorParent());
    addField(mavenOptionAlternativeSettings);

    mavenOptionJettyPort = new StringFieldEditor(MavenConstants.MAVEN_OPTION_JETTY_PORT, "-Djetty.port=", getFieldEditorParent());
    addField(mavenOptionJettyPort);

        passAllEnvVars = new BooleanFieldEditor(MavenConstants.PASS_ALL_ENVIRONMENT_VARIABLES,
            "pass all environment variables of Eclipse to launched app", getFieldEditorParent());
        addField(passAllEnvVars);
View Full Code Here

        addField(nodeJustNode);

        nodePath = new FileFieldEditor(PreferenceConstants.NODE_PATH, "Node.js path:", getFieldEditorParent());
        addField(nodePath);
       
        nodeOptions = new StringFieldEditor(PreferenceConstants.NODE_OPTIONS, "Node options (node -h):", getFieldEditorParent());
        addField(nodeOptions);

        nodeApplicationArguments = new StringFieldEditor(PreferenceConstants.NODE_APPLICATION_ARGUMENTS, "Node Application arguments:", getFieldEditorParent());
        addField(nodeApplicationArguments);
       
        nodeAllowMany = new BooleanFieldEditor(PreferenceConstants.NODE_ALLOW_MANY,
            "allow many Node.js instances running", getFieldEditorParent());
        addField(nodeAllowMany);
       
        nodePassAllEnvVars = new BooleanFieldEditor(PreferenceConstants.NODE_PASS_ALL_ENVIRONMENT_VARIABLES,
            "pass all environment variables of Eclipse to launched Node.js app", getFieldEditorParent());
        addField(nodePassAllEnvVars);

        addTernNature = new BooleanFieldEditor(PreferenceConstants.ADD_TERN_NATURE,
            "add Tern nature to newly created projects", getFieldEditorParent());
        addField(addTernNature);
       
        nodeSourcesPath = new DirectoryFieldEditor(PreferenceConstants.NODE_SOURCES_PATH, "Node sources directory path:", getFieldEditorParent());
        addField(nodeSourcesPath);

        useNodejsBaseModuleDefinitions = new BooleanFieldEditor(PreferenceConstants.USE_NODEJS_BASE_MODULE_DEFINITIONS,
            "use Node.js base module definitions (changed after restart)", getFieldEditorParent());
        addField(useNodejsBaseModuleDefinitions);
        useOrionIndexFiles = new BooleanFieldEditor(PreferenceConstants.USE_ORION_INDEX_FILES,
            "use Orion IndexFiles (changed after restart)", getFieldEditorParent());
        addField(useOrionIndexFiles);
        useCompletionJson = new BooleanFieldEditor(PreferenceConstants.USE_COMPLETIONS_JSON,
            "use completion.json (changed after restart)", getFieldEditorParent());
        addField(useCompletionJson);

        completionsPath = new FileFieldEditor(PreferenceConstants.COMPLETIONS_JSON_PATH, "Alternative completions.json path:", getFieldEditorParent());
        addField(completionsPath);
     
        // "Node debug no -break (disable interruption of Node.js app on first line, check debug Help)" would make dialog wider
        nodeDebugNoBreak = new BooleanFieldEditor(PreferenceConstants.NODE_DEBUG_NO_BREAK,
            "Node debug without -brk (disable interruption of Node.js app start)", getFieldEditorParent());
        addField(nodeDebugNoBreak);

        nodeDebugPort = new IntegerFieldEditor(PreferenceConstants.NODE_DEBUG_PORT, "Node debug port:", getFieldEditorParent());
        addField(nodeDebugPort);

//        nodeMonitorPath = new FileFieldEditor(PreferenceConstants.NODE_MONITOR_PATH, "Node monitor path:", getFieldEditorParent());
//        addField(nodeMonitorPath);

        expressPath = new FileFieldEditor(PreferenceConstants.EXPRESS_PATH, "Express path:", getFieldEditorParent());
        addField(expressPath);
       
        expressVersion = new StringFieldEditor(PreferenceConstants.EXPRESS_VERSION, "Selected Express version:", getFieldEditorParent());
        expressVersion.setEnabled(false, getFieldEditorParent());
        addField(expressVersion);       

        coffeePath = new FileFieldEditor(PreferenceConstants.COFFEE_PATH, "Coffee path:", getFieldEditorParent());
        addField(coffeePath);

    //        coffeeJustCoffee = new BooleanFieldEditor(PreferenceConstants.COFFEE_JUST_COFFEE,
    //            "just coffee (let Node.js find coffee CLI)", getFieldEditorParent());
    //        addField(coffeeJustCoffee);

        coffeeCompileOptions = new StringFieldEditor(PreferenceConstants.COFFEE_COMPILE_OPTIONS, "Coffee compile options:", getFieldEditorParent());
        addField(coffeeCompileOptions);

        coffeeCompileOutputFolder = new StringFieldEditor(PreferenceConstants.COFFEE_COMPILE_OUTPUT_FOLDER, "Coffee output folder #76", getFieldEditorParent());
        addField(coffeeCompileOutputFolder);

        typescriptCompilerPath = new FileFieldEditor(PreferenceConstants.TYPESCRIPT_COMPILER_PATH, "TypeScript compiler path:", getFieldEditorParent());
        addField(typescriptCompilerPath);

        typescriptCompilerOptions = new StringFieldEditor(PreferenceConstants.TYPESCRIPT_COMPILER_OPTIONS, "TypeScript compiler options:", getFieldEditorParent());
        addField(typescriptCompilerOptions);

    }
View Full Code Here

    gradleUseWrapper = new BooleanFieldEditor(GradleConstants.GRADLE_USE_WRAPPER,
        "use wrapper if `gradlew[.bat]` is present (appears after `gradle wrapper`)", getFieldEditorParent());
    addField(gradleUseWrapper);
    javaHomeToUse = new DirectoryFieldEditor(GradleConstants.GRADLE_JAVA_HOME_TO_USE, "alternative JAVA_HOME to use:", getFieldEditorParent());
    addField(javaHomeToUse);
    gradleJvmOpts = new StringFieldEditor(GradleConstants.GRADLE_OPTS, "JVM options GRADLE_OPTS:", getFieldEditorParent());
    addField(gradleJvmOpts);
   
    gradleOptions = new StringFieldEditor(GradleConstants.GRADLE_OPTIONS, "Gradle options (gradle -h):", getFieldEditorParent());
        addField(gradleOptions);
        /*
    gradleTask1 = new StringFieldEditor(GradleConstants.GRADLE_TASK1, "Gradle task1:", getFieldEditorParent());
        addField(gradleTask1);
        gradleTask2 = new StringFieldEditor(GradleConstants.GRADLE_TASK2, "Gradle task2:", getFieldEditorParent());
        addField(gradleTask2);
        */
        gradleOptionDebug = new BooleanFieldEditor(GradleConstants.GRADLE_OPTION_DEBUG,"-d, --debug Log in debug mode (includes normal stacktrace).", getFieldEditorParent());
        addField(gradleOptionDebug);
        gradleOptionInfo = new BooleanFieldEditor(GradleConstants.GRADLE_OPTION_INFO,"-i, --info Set log level to info.", getFieldEditorParent());
        addField(gradleOptionInfo);
        gradleOptionQuiet = new BooleanFieldEditor(GradleConstants.GRADLE_OPTION_QUIET,"-q, --quiet Log errors only.", getFieldEditorParent());
        addField(gradleOptionQuiet);
        gradleOptionOffline = new BooleanFieldEditor(GradleConstants.GRADLE_OPTION_OFFLINE,
            "--offline The build should operate without accessing network resources.", getFieldEditorParent());
        addField(gradleOptionOffline);
        gradleOptionSkipTest = new BooleanFieldEditor(GradleConstants.GRADLE_OPTION_TEST_SKIP,
            "-x test (--exclude-task test) or use `gradle assemble`", getFieldEditorParent());
        addField(gradleOptionSkipTest);
        gradleOptionDaemon = new BooleanFieldEditor(GradleConstants.GRADLE_OPTION_DAEMON,
            "--daemon Uses the Gradle daemon to run the build. Starts the daemon if not running.", getFieldEditorParent());
        addField(gradleOptionDaemon);

       
        gradleEnvVarAlternativeAndroidHome = new DirectoryFieldEditor(GradleConstants.GRADLE_ENVVAR_ALTERNATIVE_ANDROID_HOME, "alternative ANDROID_HOME:", getFieldEditorParent());
    addField(gradleEnvVarAlternativeAndroidHome);

    passAllEnvVars = new BooleanFieldEditor(GradleConstants.PASS_ALL_ENVIRONMENT_VARIABLES,
            "pass all environment variables of Eclipse to launched app // incompatible with #129", getFieldEditorParent());
        addField(passAllEnvVars);
       
        passAndroidSigningEnvVars = new BooleanFieldEditor(GradleConstants.PASS_ANDROID_SIGNING_ENVIRONMENT_VARIABLES,
            "pass Android signing environment variables (4) // experimental, see #129", getFieldEditorParent());
        addField(passAndroidSigningEnvVars);
        gradleEnvVarAlternativeKeystoreFile = new FileFieldEditor(GradleConstants.GRADLE_ENVVAR_ALTERNATIVE_ANDROID_KEYSTORE_FILE, "alternative KEYSTORE file:", getFieldEditorParent());
    addField(gradleEnvVarAlternativeKeystoreFile);
        gradleEnvVarAlternativeKeystorePassword = new StringFieldEditor(GradleConstants.GRADLE_ENVVAR_ALTERNATIVE_ANDROID_KEYSTORE_PASSWORD, "alternative KEYSTORE_PASSWORD:", getFieldEditorParent());
    addField(gradleEnvVarAlternativeKeystorePassword);
        gradleEnvVarAlternativeKeyAlias = new StringFieldEditor(GradleConstants.GRADLE_ENVVAR_ALTERNATIVE_ANDROID_KEY_ALIAS, "alternative KEY_ALIAS:", getFieldEditorParent());
    addField(gradleEnvVarAlternativeKeyAlias);
        gradleEnvVarAlternativeKeyPassword = new StringFieldEditor(GradleConstants.GRADLE_ENVVAR_ALTERNATIVE_ANDROID_KEY_PASSWORD, "alternative KEY_PASSWORD:", getFieldEditorParent());
    addField(gradleEnvVarAlternativeKeyPassword);
   
  }
View Full Code Here

  protected abstract ELEMENTS createDialogElements(Composite composite,
      Runnable modifyListener, PreferenceStore store);

  protected static TabElements createBasicTabElements(Composite composite,
      final Runnable modifyListener, PreferenceStore store, Params params) {
    final StringFieldEditor debugHost;
    final IntegerFieldEditor debugPort;
    final BooleanFieldEditor addNetworkConsole;
    {
      Group connectionGroup = new Group(composite, 0);
      connectionGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
      connectionGroup.setText(Messages.ChromiumRemoteTab_CONNECTION_GROUP);
      connectionGroup.setLayout(new GridLayout(1, false));


      IPropertyChangeListener propertyModifyListener = new IPropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent event) {
          modifyListener.run();
        }
      };


      Composite propertiesComp = createInnerComposite(connectionGroup, 2);

      // Host text field
      debugHost = new StringFieldEditor(HOST_FIELD_NAME,
          Messages.ChromiumRemoteTab_HostLabel, propertiesComp);
      debugHost.setPropertyChangeListener(propertyModifyListener);
      debugHost.setPreferenceStore(store);

      // Port text field
      debugPort = new IntegerFieldEditor(PORT_FIELD_NAME,
          Messages.ChromiumRemoteTab_PortLabel, propertiesComp);
      debugPort.setPropertyChangeListener(propertyModifyListener);
View Full Code Here

 
      javaJustJava = new BooleanFieldEditor(AvatarjsConstants.JAVA_JUST_JAVA,
          "just `java` (find `java` on PATH. Useful when there are 2 or more JDK 8 instances)", getFieldEditorParent());
      addField(javaJustJava);
 
      javaOptions = new StringFieldEditor(AvatarjsConstants.JAVA_OPTIONS, "`Java options:", getFieldEditorParent());
        addField(javaOptions);
   
        javaOptionsToRunWithAvatarjs = new StringFieldEditor(AvatarjsConstants.JAVA_OPTIONS_TO_RUN_WITH_AVATARJS,
            "`Java options to run with Avatar.js:", getFieldEditorParent());
        addField(javaOptionsToRunWithAvatarjs);
  }
View Full Code Here

  @Override
  protected void createFieldEditors() {
        mongoDBShellPath = new FileFieldEditor(PreferenceConstants.MONGODB_SHELL_PATH, "MongoDB Shell path:", getFieldEditorParent());
        addField(mongoDBShellPath);
       
        mongoDBShellOptions = new StringFieldEditor(PreferenceConstants.MONGODB_SHELL_OPTIONS, "MongoDB Shell options:", getFieldEditorParent());
        addField(mongoDBShellOptions);
       
  }
View Full Code Here

    comp.setLayout(new GridLayout());
    Group group = new Group(comp , SWT.NONE);
    group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    group.setLayout(new GridLayout(1, false));
    group.setText(Messages.ProcessPreferencePage_process_group);
    StringFieldEditor templateField  = new StringFieldEditor(PROCESS.name(), "", group); //$NON-NLS-1$
    addField(templateField);
    Composite keyDescription = new Composite(group, SWT.NONE);
    keyDescription.setLayout(new GridLayout(1, false));
    GridDataFactory.fillDefaults().span(2, 1).applyTo(keyDescription);
   
View Full Code Here

TOP

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

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.