Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.StringFieldEditor


          }

          case ML_FLOAT_PARAM:
          case ML_INT_PARAM:
          case ML_STRING_PARAM: {
            l = new StringFieldEditor(id, p.name, getFieldEditorParent());
            fields.add(l);
            addField(l);
            store.setDefault(id, values.get(p.id).toString());
            l.setPreferenceStore(store);
            break;
View Full Code Here


          }

          case ML_FLOAT_PARAM:
          case ML_INT_PARAM:
          case ML_STRING_PARAM: {
            l = new StringFieldEditor(id, p.name, top);
            fields.add(l);
            store.setDefault(id, values.get(p.id).toString());
            l.setPreferenceStore(store);
            l.load();
            break;
View Full Code Here

          }

          case ML_FLOAT_PARAM:
          case ML_INT_PARAM:
          case ML_STRING_PARAM: {
            l = new StringFieldEditor(id, p.name, top);
            fields.add(l);
            store.setDefault(id, values.get(p.id).toString());
            l.setPreferenceStore(store);
            l.load();
            break;
View Full Code Here

    addField(proxyTypeFE);
   
    horizontalLine = new Label(getFieldEditorParent(), SWT.NONE);
    horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 3, 1));
   
    proxyUrlFE = new StringFieldEditor(PreferenceConstants.PROXY_URL,
        Messages.getString("InternetPage.ProxyUrl"),
        getFieldEditorParent());
   
    addField(proxyUrlFE);
   
    proxyPortFE = new IntegerFieldEditor(PreferenceConstants.PROXY_PORT,
        Messages.getString("InternetPage.ProxyPort"),
        getFieldEditorParent());
   
    addField(proxyPortFE);
   
    proxyUsernameFE = new StringFieldEditor(PreferenceConstants.PROXY_USERNAME,
        Messages.getString("InternetPage.ProxyUsername"),
        getFieldEditorParent());
   
    addField(proxyUsernameFE);
   
    proxyPasswordFE = new StringFieldEditor(PreferenceConstants.PROXY_PASSWORD,
        Messages.getString("InternetPage.ProxyPassword"),
        getFieldEditorParent());
    proxyPasswordFE.getTextControl(getFieldEditorParent()).setEchoChar('*');
   
    addField(proxyPasswordFE);
 
View Full Code Here

   
    mplayerPath = new FileFieldEditor(PreferenceConstants.P_MPLAYER_PATH,
        Messages.getString("MPlayerEnginePage.MPlayerPath"), getFieldEditorParent()); //$NON-NLS-1$   
    addField(mplayerPath);  
   
    additionalOptionsEditor = new StringFieldEditor(PreferenceConstants.MPLAYER_ADDITIONAL_OPTIONS,
        Messages.getString("MPlayerEnginePage.MPlayerAdditionalOptions"), //$NON-NLS-1$
        getFieldEditorParent());
    additionalOptionsEditor.getTextControl(getFieldEditorParent()).setToolTipText(Messages.getString("MPlayerEnginePage.AdditionalOptionsTooltip")); //$NON-NLS-1$
    addField(additionalOptionsEditor);
   
View Full Code Here

    addField(new BooleanFieldEditor(P_SHOW_FULLY_QUALIFIED_NAMES, "&Show fully qualified names",
            getFieldEditorParent()));

    addField(new IntegerFieldEditor(P_XML_TAB_SPACES, "&XML indentation", getFieldEditorParent()));

    addField(new StringFieldEditor(P_VNS_HOST, "&Vinci Name Service Host IP address",
            getFieldEditorParent()));

    addField(new StringFieldEditor(P_VNS_PORT, "Vinci NameService &Port number",
            getFieldEditorParent()));
  }
View Full Code Here

        addField(new BooleanFieldEditor(
                PreferenceConstants.USE_FIRST_LINE_AS_HEADER,
                "&Use the first line of the CSV file as the column headers",
                getFieldEditorParent()));

        StringFieldEditor customDelimiterField = new StringFieldEditor(
                PreferenceConstants.CUSTOM_DELIMITER,
                "Choose the delimiter to use:", 2, getFieldEditorParent());
        customDelimiterField.setTextLimit(1);
        customDelimiterField.setEmptyStringAllowed(false);
        addField(customDelimiterField);

        StringFieldEditor textQualifierChar = new StringFieldEditor(
                PreferenceConstants.TEXT_QUALIFIER,
                "Define the character used as a text qualifier of the data:", 2, getFieldEditorParent());
        customDelimiterField.setTextLimit(1);
        customDelimiterField.setEmptyStringAllowed(false);
        addField(textQualifierChar);
        addField(new BooleanFieldEditor(
                PreferenceConstants.USE_QUALIFIER,
                "For the text qualifier to be used for all fields",
                getFieldEditorParent()));

        StringFieldEditor commentChar = new StringFieldEditor(
                PreferenceConstants.COMMENT_CHAR,
                "Choose the character to use as a comment:", 2, getFieldEditorParent());
        customDelimiterField.setTextLimit(1);
        customDelimiterField.setEmptyStringAllowed(true);
        addField(commentChar);
View Full Code Here

    DirectoryFieldEditor  forteRoot = new DirectoryFieldEditor(
        ToolPlugin.FORTE_ROOT_PREFERENCE,
        "&Forte Root:",
        getFieldEditorParent());
      addField(forteRoot);
      StringFieldEditor  forteLogger = new StringFieldEditor (
          ToolPlugin.FORTE_LOGGER_PREFERENCE,
          "&Log Flags:",
           getFieldEditorParent());
        addField(forteLogger)
   
View Full Code Here

    cbSeverity = new ComboFieldEditor(SEVERITY, "Show wicket errors as", severityValues, composite);
    cbSeverity.setPreferenceStore(getPreferenceStore());
    cbSeverity.setPage(this);
    cbSeverity.load();

    sfExcludes = new StringFieldEditor(EXCLUDES, "exclude project paths from being checked (comma separated)", composite);
    sfExcludes.setPreferenceStore(getPreferenceStore());
    sfExcludes.setPage(this);
    sfExcludes.load();

    rgAdder = new RadioGroupFieldEditor(ADDERS_TO, "add new components to", 1, new String[][] { { "Constructor", "ctor" }, { "onInitialize", "init" } }, composite);
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

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.