Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.StringFieldEditor


    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_template_group);
    StringFieldEditor templateField  = new StringFieldEditor(TEMPLATE.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


          case ML_FLOAT_PARAM:
          case ML_DOUBLE_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

    setDescription("Scanner Options");
  }

  @Override
  protected void createFieldEditors() {
    final StringFieldEditor userAgent = new StringFieldEditor(IPreferenceConstants.P_USER_AGENT, "&User-Agent:", 60, getFieldEditorParent());
    addField(userAgent);
    addIntegerField(IPreferenceConstants.P_MAX_SCAN_DESCENDANTS, "Maximum number of total path descendants", 10, 100000);
    addIntegerField(IPreferenceConstants.P_MAX_SCAN_CHILDREN, "Maximum number child paths for a single node", 10, 100000);
    addIntegerField(IPreferenceConstants.P_MAX_SCAN_DEPTH, "Maximum path depth", 1, 10000);
    addIntegerField(IPreferenceConstants.P_MAX_SCAN_DUPLICATE_PATHS, "Maximum number of duplicate path elements", 2, 100);
View Full Code Here

    addField(socksEnableField);
   
    socksConfigControl = new Composite(rootControl, SWT.NONE);
    socksConfigControl.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));

    socksAddressField = new StringFieldEditor(P_SOCKS_ADDRESS, "Proxy Address", socksConfigControl);
    socksAddressField.setEmptyStringAllowed(false);
    addField(socksAddressField);

    socksPortField = new IntegerFieldEditor(P_SOCKS_PORT, "Proxy Port", socksConfigControl);
    socksPortField.setValidRange(1, 65535);
View Full Code Here

    addField(httpProxyEnableField);
   
    httpProxyConfigControl = new Composite(rootControl, SWT.NONE);
    httpProxyConfigControl.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));

    httpProxyAddressField = new StringFieldEditor(P_PROXY_ADDRESS, "Proxy Address", httpProxyConfigControl);
    httpProxyAddressField.setEmptyStringAllowed(false);
    addField(httpProxyAddressField);

    httpProxyPortField = new IntegerFieldEditor(P_PROXY_PORT, "Proxy Port", httpProxyConfigControl);
    httpProxyPortField.setValidRange(1, 65535);
View Full Code Here

    setDescription("Configuration parameters for the HTTP Proxy");
  }

  @Override
  protected void createFieldEditors() {
    final StringFieldEditor userAgent = new StringFieldEditor(P_USER_AGENT, "Default &User-Agent:", 60, getFieldEditorParent());
    addField(userAgent);

    final BooleanFieldEditor userAgentOverride = new BooleanFieldEditor(P_USER_AGENT_OVERRIDE, "Override client User-Agent", getFieldEditorParent());
    addField(userAgentOverride);
View Full Code Here

        });
        return c;
      }
    };
    addField(authEnabled);
    username = new StringFieldEditor(Activator.PREF_LOGIN, "Login", getFieldEditorParent());
    password = new StringFieldEditor(Activator.PREF_PASSWORD, "Password", getFieldEditorParent()) {
      @Override
      protected void doFillIntoGrid(Composite parent, int numColumns) {
        super.doFillIntoGrid(parent, numColumns);
       
        getTextControl().setEchoChar('*');
 
View Full Code Here

        });
        return c;
      }
    };
    addField(authEnabled);
    username = new StringFieldEditor(Activator.PREF_LOGIN, "Login", getFieldEditorParent());
    password = new StringFieldEditor(Activator.PREF_PASSWORD, "Password", getFieldEditorParent()) {
      @Override
      protected void doFillIntoGrid(Composite parent, int numColumns) {
        super.doFillIntoGrid(parent, numColumns);
       
        getTextControl().setEchoChar('*');
 
View Full Code Here

        PreferenceConstants.P_TAB_EXPAND,
        "&Expand abbreviations by Tab key",
        getFieldEditorParent()));
   
    addField(
        new StringFieldEditor(
            PreferenceConstants.P_TAB_EXT,
            "...in files with extensions",
            getFieldEditorParent()));
   
    addField(
View Full Code Here

        addField( new BooleanFieldEditor(
                LogController.SOCKET_APPENDER_KEY,
                Activator.getResourceString( "LogPreferencePage.SocketAppender" ), //$NON-NLS-1$
                getFieldEditorParent() ) );

        addField( new StringFieldEditor(
                LogController.SOCKET_APPENDER_HOST_NAME_KEY,
                Activator.getResourceString( "LogPreferencePage.SocketAppenderHostName" ), //$NON-NLS-1$
                getFieldEditorParent() ) );

        addField( new IntegerFieldEditor(
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.