Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.StringFieldEditor


   
   
    addField(new SpacerFieldEditor(getFieldEditorParent()));
   
    addField(
      new StringFieldEditor(getPrefName(PreferenceConstants.P_FILTERS), "Applied &filters:", getFieldEditorParent()));

  }
View Full Code Here


        Composite control = new Composite(parent, SWT.NONE);
        setControl(control);

        if (getModel().getType().isDynamic())
        {
            nameEditor = new StringFieldEditor("name", "Name:", control);
            nameEditor.setEmptyStringAllowed(false);
            addField(nameEditor);
        }

        createFieldEditors();

        int cols = 0;
        for (FieldEditor e : editors)
        {
            cols = Math.max(cols, e.getNumberOfControls());
        }

        control.setLayout(new GridLayout(cols, false));

        for (FieldEditor e : editors)
        {
            if (e instanceof StringFieldEditor) {
                StringFieldEditor sfe = (StringFieldEditor) e;
                sfe.getTextControl(getFieldEditorParent()).addModifyListener(
                    new ModifyListener()
                    {
                        public void modifyText(ModifyEvent e)
                        {
                            checkPageComplete();
View Full Code Here

        setDescription("Set the options for tracing.");
    }

    @Override
    protected void createFieldEditors() {
        final StringFieldEditor nodeNameEditor = new StringFieldEditor(
                PreferenceNames.NODE_NAME, "&Tracing node name:", getFieldEditorParent());
        final IntegerFieldEditor netTickTimeEditor = new IntegerFieldEditor(
                PreferenceNames.TICK_TIME, "&Net tick time (in seconds):",
                getFieldEditorParent());
        netTickTimeEditor.setValidRange(4, 1000);
View Full Code Here


    @Override
    public void createFieldEditors()
    {
        createField( urlEditor = new StringFieldEditor( "url", "URL:", getFieldEditorParent() ) );
        createField( cacheEditor = new DirectoryFieldEditor( "cache", "Cache:", getFieldEditorParent() ) );
        addField( new BooleanFieldEditor( "inmemory", "In Memory:", getFieldEditorParent() ) );
    }
View Full Code Here

                        _pattern.setEnabled(b.getSelection(), parent);
                    }
                });
            }
        };
        _pattern = new StringFieldEditor(PreferenceConstants.RETRIEVE_PATTERN, "Pattern",
                fieldParent);
        _pattern.setEnabled(getPreferenceStore().getBoolean(PreferenceConstants.DO_RETRIEVE),
            fieldParent);
        addField(doR);
        addField(_pattern);

        new Label(fieldParent, SWT.NONE); // space
        explanation = new Label(fieldParent, SWT.NONE);
        explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
                1));
        explanation
                .setText("Pattern example: lib/[conf]/[artifact].[ext]\n"
                        + "To copy artifacts in folder named lib without revision by folder named like configurations");
        new Label(fieldParent, SWT.NONE).setLayoutData(new GridData(GridData.FILL,
                GridData.BEGINNING, false, false, 3, 1)); // space

        addField(new StringFieldEditor(PreferenceConstants.ACCEPTED_TYPES, "Accepted types",
                fieldParent));

        new Label(fieldParent, SWT.NONE); // space
        explanation = new Label(fieldParent, SWT.NONE);
        explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
                1));
        explanation
                .setText("Comma separated list of artifact types to use in IvyDE Managed Dependencies Library\n"
                        + "Example: jar, zip");

        addField(new StringFieldEditor(PreferenceConstants.SOURCES_TYPES, "Sources types",
                fieldParent));

        new Label(fieldParent, SWT.NONE); // space
        explanation = new Label(fieldParent, SWT.NONE);
        explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
                1));
        explanation.setText("Comma separated list of artifact types to be used as sources. \n"
                + "Example: source, src");

        addField(new StringFieldEditor(PreferenceConstants.SOURCES_SUFFIXES, "Sources suffixes",
                fieldParent));

        new Label(fieldParent, SWT.NONE); // space
        explanation = new Label(fieldParent, SWT.NONE);
        explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
                1));
        explanation.setText("Comma separated list of suffixes to match sources and artifacts. \n"
                + "Example: -source, -src");

        addField(new StringFieldEditor(PreferenceConstants.JAVADOC_TYPES, "Javadoc types",
                fieldParent));

        new Label(fieldParent, SWT.NONE); // space
        explanation = new Label(fieldParent, SWT.NONE);
        explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
                1));
        explanation.setText("Comma separated list of artifact types to be used as javadoc. \n"
                + "Example: javadoc");

        addField(new StringFieldEditor(PreferenceConstants.JAVADOC_SUFFIXES, "Javadoc suffixes",
                fieldParent));

        new Label(fieldParent, SWT.NONE); // space
        explanation = new Label(fieldParent, SWT.NONE);
        explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
                1));
        explanation.setText("Comma separated list of suffixes to match javadocs and artifacts. \n"
                + "Example: -javadoc, -doc");

        spacer = new Label(fieldParent, SWT.NONE);
        spacerData = new GridData();
        spacerData.horizontalSpan = 3;
        spacer.setLayoutData(spacerData);

        BooleanFieldEditor alphaOrder = new BooleanFieldEditor(
                PreferenceConstants.ALPHABETICAL_ORDER,
                "Order alphabetically the artifacts in the classpath container", fieldParent);
        addField(alphaOrder);

        spacer = new Label(fieldParent, SWT.NONE);
        spacerData = new GridData();
        spacerData.horizontalSpan = 3;
        spacer.setLayoutData(spacerData);

        spacer = new Label(fieldParent, SWT.NONE);
        spacerData = new GridData();
        spacerData.horizontalSpan = 3;
        spacer.setLayoutData(spacerData);
        spacer.setText("Editor information");
        spacer = new Label(fieldParent, SWT.SEPARATOR | SWT.HORIZONTAL);
        spacer.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
        addField(new StringFieldEditor(PreferenceConstants.ORGANISATION, "&Organisation:",
                fieldParent));
        addField(new StringFieldEditor(PreferenceConstants.ORGANISATION_URL, "Organisation &URL:",
                fieldParent));
    }
View Full Code Here

   * 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() {
    addField(new StringFieldEditor(PreferenceConstants.P_SERVER,
        "&Servername:", getFieldEditorParent()));
    addField(new StringFieldEditor(PreferenceConstants.P_USERNAME,
        "&Username:", getFieldEditorParent()));
    PasswordFieldEditor pwEditor = new PasswordFieldEditor(
        PreferenceConstants.P_PASSWORD, "&Password:",
        getFieldEditorParent());
    addField(pwEditor);
View Full Code Here

   * 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() {
    addField(new StringFieldEditor(PreferenceConstants.P_SERVER,
        "&Servername:", getFieldEditorParent()));
    addField(new StringFieldEditor(PreferenceConstants.P_USERNAME,
        "&Username:", getFieldEditorParent()));
    PasswordFieldEditor pwEditor = new PasswordFieldEditor(
        PreferenceConstants.P_PASSWORD, "&Password:",
        getFieldEditorParent());
    addField(pwEditor);
View Full Code Here

   * 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() {
    addField(new StringFieldEditor(PreferenceConstants.P_SERVER,
        "&Servername:", getFieldEditorParent()));
    addField(new StringFieldEditor(PreferenceConstants.P_USERNAME,
        "&Username:", getFieldEditorParent()));
    PasswordFieldEditor pwEditor = new PasswordFieldEditor(
        PreferenceConstants.P_PASSWORD, "&Password:",
        getFieldEditorParent());
    addField(pwEditor);
View Full Code Here

   * GUI blocks needed to manipulate various types of preferences. Each field
   * editor knows how to save and restore itself.
   */
  public void createFieldEditors() {
    addField(new LabelFieldEditor("", getFieldEditorParent()));
    addField(new StringFieldEditor(PreferenceConstants.P_SERVER,
        "&Servername:", getFieldEditorParent()));
    addField(new StringFieldEditor(PreferenceConstants.P_USERNAME,
        "&Username:", getFieldEditorParent()));
    PasswordFieldEditor pwEditor = new PasswordFieldEditor(
        PreferenceConstants.P_PASSWORD, "&Password:",
        getFieldEditorParent());
    addField(pwEditor);
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

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.