Examples of BooleanFieldEditor


Examples of org.eclipse.jface.preference.BooleanFieldEditor

  }

  @Override
  public void createFieldEditors() {
    super.createFieldEditors();
    addField(new BooleanFieldEditor(ConfEditor.SOFT_TABS, "Indent with spaces (soft tabs)", getFieldEditorParent()));
    addField(new IntegerFieldEditor(ConfEditor.SOFT_TABS_WIDTH, "Soft tabs length", getFieldEditorParent()));
  }
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

        {"Ignore", "ignore"},
        {"Warning", "warning"},
        {"Error", "error"}
    };
    addField(new ComboFieldEditor(RouteEditor.MISSING_ROUTE, "When a route is missing", missingRouteKeyValues, getFieldEditorParent()));
    addField(new BooleanFieldEditor(RouteEditor.SOFT_TABS, "Indent with spaces (soft tabs)", getFieldEditorParent()));
    addField(new IntegerFieldEditor(RouteEditor.SOFT_TABS_WIDTH, "Soft tabs length", getFieldEditorParent()));
  }
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

        {"Ignore", "ignore"},
        {"Warning", "warning"},
        {"Error", "error"}
    };
    addField(new ComboFieldEditor(HTMLEditor.MISSING_ACTION, "When an action is missing", missingRouteKeyValues, getFieldEditorParent()));
    addField(new BooleanFieldEditor(HTMLEditor.SOFT_TABS, "Indent with spaces (soft tabs)", getFieldEditorParent()));
    addField(new IntegerFieldEditor(HTMLEditor.SOFT_TABS_WIDTH, "Soft tabs length", getFieldEditorParent()));
  }
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

     * itself.
     */
    public void createFieldEditors() {
        final Composite fieldParent = getFieldEditorParent();

        BooleanFieldEditor autoResolveOnClose = new BooleanFieldEditor(
                PreferenceConstants.AUTO_RESOLVE_ON_CLOSE,
                "On project closing trigger resolve on dependent project", fieldParent) {
            protected Label getLabelControl() {
                Label label = super.getLabelControl();
                label.setToolTipText("Will automatically resolve projects in the "
                        + "workspace after dependent project is closed");
                return label;
            }
        };
        addField(autoResolveOnClose);

        BooleanFieldEditor autoResolveOnOpen = new BooleanFieldEditor(
                PreferenceConstants.AUTO_RESOLVE_ON_OPEN,
                "On project opening trigger resolve on every other project", fieldParent) {
            protected Label getLabelControl() {
                Label label = super.getLabelControl();
                label.setToolTipText("Will automatically resolve projects in the "
                        + "workspace and link open project where necessary");
                return label;
            }
        };
        addField(autoResolveOnOpen);
       
        BooleanFieldEditor ignoreBranchOnWorkspaceProjects = new BooleanFieldEditor(
                PreferenceConstants.IGNORE_BRANCH_ON_WORKSPACE_PROJECTS,
                "Ignore branch when resolving workspace projects", fieldParent) {
            protected Label getLabelControl() {
                Label label = super.getLabelControl();
                label.setToolTipText("Will ignore the artifact branch when resolving "
                        + "against workspace projects");
                return label;
            }
        };

        addField(ignoreBranchOnWorkspaceProjects);

        BooleanFieldEditor ignoreVersionOnWorkspaceProjects = new BooleanFieldEditor(
                PreferenceConstants.IGNORE_VERSION_ON_WORKSPACE_PROJECTS,
                "Ignore version when resolving workspace projects", fieldParent) {
            protected Label getLabelControl() {
                Label label = super.getLabelControl();
                label.setToolTipText("Will ignore the artifact version when resolving "
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

        aoiSelection.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL));
       
//        zoomToSelection = new BooleanFieldEditor(ZOOM_TO_SELECTION, Messages.Zoom_To_Selection, getFieldEditorParent());
//        addField(zoomToSelection);
       
        navigateSelection = new BooleanFieldEditor(NAVIGATE_SELECTION, Messages.Navigate_Selection, getFieldEditorParent());
        addField(navigateSelection);
    }
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

    @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

Examples of org.eclipse.jface.preference.BooleanFieldEditor

    setPreferenceStore(Activator.getDefault().getPreferenceStore());
    setDescription(Messages.SWTBotPreferencePage_SWTBot_Preference_Dialog_Description);
  }

  public void createFieldEditors() {
    BooleanFieldEditor editor = new BooleanFieldEditor(PreferenceInitializer.ENABLE_ADDITIONAL_AUTOCOMPLETE_FAVOURTES,
        Messages.Enable_Additional_Autocomplete_Options, getFieldEditorParent());
    addField(editor);

  }
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

        explanation.setText("The url where your ivyconf file can be found. \n"
                + "Leave empty to reference the default ivy configuration.");
        new Label(fieldParent, SWT.NONE).setLayoutData(new GridData(GridData.FILL,
                GridData.BEGINNING, false, false, 3, 1)); // space

        BooleanFieldEditor doR = new BooleanFieldEditor(PreferenceConstants.DO_RETRIEVE,
                "Do a retrieve after resolve", fieldParent) {
            protected void createControl(final Composite parent) {
                super.createControl(parent);
                final Button b = getChangeControl(parent);
                b.addSelectionListener(new SelectionAdapter() {
                    public void widgetSelected(SelectionEvent e) {
                        _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);
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

        getFieldEditorParent());
    addField(pwEditor);
    // Choose between 5 and 100 results
    addField(new SliderFieldEditor(PreferenceConstants.P_RESULTS,
        "&Results per Search:", 5, 105, 5, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_FORMAT,
        "Format Code on Insertion", BooleanFieldEditor.SEPARATE_LABEL,
        getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_UDC,
        "Report Crash to Developers",
        BooleanFieldEditor.SEPARATE_LABEL, getFieldEditorParent()));
  }
View Full Code Here

Examples of org.eclipse.jface.preference.BooleanFieldEditor

        getFieldEditorParent());
    addField(pwEditor);
    // Choose between 5 and 100 results
    addField(new SliderFieldEditor(PreferenceConstants.P_RESULTS,
        "&Results per Search:", 5, 105, 5, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_FORMAT,
        "Format Code on Insertion", BooleanFieldEditor.SEPARATE_LABEL,
        getFieldEditorParent()));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.