Package org.python.pydev.utils

Examples of org.python.pydev.utils.LabelFieldEditor


    @Override
    public void createFieldEditors() {
        Composite p = getFieldEditorParent();

        addField(new LabelFieldEditor(
                "Analysis_pref_note",
                "NOTE: Any file with the comment below will not be analyzed.\n\n#@PydevCodeAnalysisIgnore\n\nOptions:\n\n",
                p));

        TabFolder tabFolder = new TabFolder(p, SWT.NONE);
View Full Code Here


        initHandlingFieldEditor = new TableComboFieldEditor(TITLE_EDITOR_INIT_HANDLING, "__init__.py handling:",
                EDITOR__INIT__HANDLING_VALUES, p);
        addField(initHandlingFieldEditor);

        new LabelFieldEditor("UNUSED", "Django related configurations", p);
        new LabelFieldEditor("UNUSED", "", p);

        Object[][] EDITOR_DJANGO_MODULES_HANDLING_VALUES = {
                { "Show as regular module", TITLE_EDITOR_DJANGO_MODULES_DEFAULT_ICON, null },

                { "Show as regular module but using icon with module initial", TITLE_EDITOR_DJANGO_MODULES_DECORATE,
View Full Code Here

        addField(parametersField);

        addField(new BooleanFieldEditor(USE_PYUNIT_VIEW, "Show the results in the unittest results view?", p));

        String s = "Note: if unchecked, no xml-rpc communication will be done when running tests\nand the output will only be shown in the console.";
        addField(new LabelFieldEditor("LabelFieldEditor", s, p));

        String s2 = "Parameters for PyDev test runner (hover for description):" + "";
        addField(new LabelFieldEditor("LabelFieldEditor2", s2, p));

        add("--<a>verbosity</a>=number", "verbosity", "Sets the verbosity level for the run (0-9)\n"
                + " 0: almost no output\n" + " 9: many details", p);

        add("--<a>jobs</a>=number", "jobs", "The number of processes to be used to run the tests.\n\n"
View Full Code Here

        addField(new BooleanFieldEditor(USE_CODECOMPLETION, "Use code completion?", p));

        addField(new BooleanFieldEditor(USE_CODE_COMPLETION_ON_DEBUG_CONSOLES,
                "Use code completion on debug console sessions?", p));

        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_CODE_COMPLETION_DEBUG_CONSOLE",
                "Note: only applied for new consoles.", p));

        addField(new BooleanFieldEditor(AUTOCOMPLETE_ON_DOT, "Request completion on '.'?", p));

        addField(new BooleanFieldEditor(AUTOCOMPLETE_ON_PAR, "Request completion on '('?", p));

        addField(new BooleanFieldEditor(AUTOCOMPLETE_ON_ALL_ASCII_CHARS,
                "Request completion on all letter chars and '_'?", p));

        addField(new BooleanFieldEditor(APPLY_COMPLETION_ON_DOT, "Apply completion on '.'?", p));

        addField(new BooleanFieldEditor(APPLY_COMPLETION_ON_LPAREN, "Apply completion on '('?", p));

        addField(new BooleanFieldEditor(APPLY_COMPLETION_ON_RPAREN, "Apply completion on ')'?", p));

        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_a", "", p));
        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_b", "", p));

        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_0",
                "Note: ENTER will always apply the completion.", p));

        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_0a", "", p));
        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_0b", "", p));
        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_0c", "", p));

        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_1",
                "Note 2: Shift + ENTER can be used if you want a new line\n" + "without applying a completion.", p));

        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_1a", "", p));
        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_1b", "", p));
        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_1c", "", p));

        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_2",
                "Note 3: Ctrl + ENTER can be used as a way to apply the completion\n"
                        + "erasing the next chars from the current token.", p));

        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_2a", "", p));
        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_2b", "", p));
        addField(new LabelFieldEditor("LABEL_FIELD_EDITOR_NEW_LINE_ALWAYS_THERE_2c", "", p));

    }
View Full Code Here

        GridData d = new GridData();
        d.horizontalAlignment = GridData.FILL;
        d.grabExcessHorizontalSpace = true;
        button.setLayoutData(d);

        FieldEditor fe = new LabelFieldEditor("Help", w, p);
        addField(fe);
    }
View Full Code Here

                + "\n" +
                "So, if you choose to disable it, note that the features \n"
                + "mentioned above may not work as expected or may even not \n"
                + "work at all (use at your own risk).\n";

        addField(new LabelFieldEditor("LabelFieldEditor", s, p));
        addField(new BooleanFieldEditor(USE_PYDEV_BUILDERS, "Use builders?", p));

        //Analysis only on save means that we'll not have parse notifications (so, things will be analyzed only on save)
        addField(new BooleanFieldEditor(PyParserManager.USE_PYDEV_ANALYSIS_ONLY_ON_DOC_SAVE,
                "Disable parser notifications?", p));
        addField(new IntegerFieldEditor(PyParserManager.PYDEV_ELAPSE_BEFORE_ANALYSIS,
                "Time to elapse before reparsing changed file (millis)", p));

        s = "If only open editors are analyzed, markers will only be added\n" +
                "to the opened PyDev editors.\n";
        addField(new LabelFieldEditor("ActiveBufferLabelFieldEditor", s, p));

        BooleanFieldEditorWithPublicGetControl onlyAnalyzeOpen = new BooleanFieldEditorWithPublicGetControl(
                ANALYZE_ONLY_ACTIVE_EDITOR, "Only analyze open editors?", p);
        addField(onlyAnalyzeOpen);
View Full Code Here

    @Override
    protected void createFieldEditors() {
        final Composite p = getFieldEditorParent();

        addField(new LabelFieldEditor("Label_Info_File_Preferences1", WrapAndCaseUtils.wrap(
                "These setting are used whenever imports are managed in the application\n\n", 80), p));

        addField(new BooleanFieldEditor(GROUP_IMPORTS, "Group 'from' imports when possible?", p));

        addField(new BooleanFieldEditor(MULTILINE_IMPORTS, WrapAndCaseUtils.wrap(
View Full Code Here

                CodeCompletionPreferencesInitializer.CHARS_FOR_CTX_INSENSITIVE_TOKENS_COMPLETION,
                "Number of chars for showing global tokens in context-insensitive completions?", p));

        addField(new BooleanFieldEditor(CodeCompletionPreferencesInitializer.USE_KEYWORDS_CODE_COMPLETION,
                "Use common tokens auto code completion?", p));
        addField(new LabelFieldEditor("LabelFieldEditor", "", p));

        addField(new BooleanFieldEditor(CodeCompletionPreferencesInitializer.ADD_SPACE_WHEN_NEEDED,
                "Add <SPACE> for common cases (e.g.: \"and \", \"assert \", etc.)?", p));
        addField(new LabelFieldEditor("LabelFieldEditor", "", p));

        addField(new BooleanFieldEditor(CodeCompletionPreferencesInitializer.ADD_SPACE_AND_COLON_WHEN_NEEDED,
                "Add <SPACE><COLON> for common cases (e.g.: \"class :\", \"if :\", etc.)?", p));
        addField(new LabelFieldEditor("LabelFieldEditor", "", p));

        addField(new BooleanFieldEditor(CodeCompletionPreferencesInitializer.FORCE_PY3K_PRINT_ON_PY2,
                "Force print() function on Python 2.x projects?", p));
        addField(new LabelFieldEditor("LabelFieldEditor", "", p));

        addField(new ListEditor(CodeCompletionPreferencesInitializer.KEYWORDS_CODE_COMPLETION, "Tokens to use:", p) {

            @Override
            protected String createList(String[] items) {
View Full Code Here

                    public void widgetDefaultSelected(SelectionEvent e) {
                    }
                });
        colorsAndFontsLinkFieldEditor.getLinkControl(appearanceComposite);

        LabelFieldEditor labelFieldEditor = new LabelFieldEditor("UNUSED", "Scopes used in Aptana Themes:\n\n"
                + "Code:          source                   " +
                "Backquotes: support.type\n" +
                "Keywords:      keyword                  " +
                "{}, [], (): source.parens\n" +
                "Self:          keyword.other.self       " +
                "Comments:   comment\n" +
                "Decorators:    storage.type.annotation  " +
                "Strings:    string\n" +
                "Numbers:       constant.numeric         " +
                "Stderr:     console.error\n" +
                "Class name:    entity.name.class        " +
                "Stdout:     console.output\n" +
                "Function name: entity.name.function     " +
                "Input:      console.input\n" +
                "Operators:     source.operators         " +
                "Prompt:     console.prompt\n" + "", appearanceComposite);
        Label labelControl = labelFieldEditor.getLabelControl(appearanceComposite);
        try {
            FontData labelFontData = new FontData("Courier New", 8, SWT.NONE);
            labelControl.setFont(new Font(labelControl.getDisplay(), labelFontData));
        } catch (Throwable e) {
            //ignore
View Full Code Here

TOP

Related Classes of org.python.pydev.utils.LabelFieldEditor

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.