Package org.python.pydev.utils

Examples of org.python.pydev.utils.LinkFieldEditor


                super.doFillIntoGrid(parent, 3);
                adjustForNumColumns(3);
            }
        });

        addField(new LinkFieldEditor(PEP8_COMMAND_LINE,
                "Additional command line arguments (i.e.: --ignore=E5,W391). See <a>pep8 docs</a> for details.", p,
                new SelectionListener() {

                    public void widgetSelected(SelectionEvent e) {
                        Program.launch("http://pypi.python.org/pypi/pep8");
View Full Code Here


                        + "Patters are fnmatch-style patterns (i.e.: *_todo, *_slow and not regexps).\n\n", p);

    }

    private void add(String linkText, String flag, String tooltip, Composite p) {
        addField(new LinkFieldEditor("link_" + flag, linkText, p, new PyUnitPrefsPage2.PyUnitPageLinkListener(flag),
                tooltip + "\n", tooltipPresenter));
    }
View Full Code Here

        formatAndStyleRangeHelper = new StyledTextForShowingCodeFactory();
        labelExample = formatAndStyleRangeHelper.createStyledTextForCodePresentation(appearanceComposite);
        updateLabelExample(PyFormatStd.getFormat(), PydevPrefs.getChainedPrefStore());

        LinkFieldEditor colorsAndFontsLinkFieldEditor = new LinkFieldEditor("UNUSED",
                "Other settings:\n\n<a>Text Editors</a>: print margin, line numbers ...", appearanceComposite,
                new SelectionListener() {

                    public void widgetSelected(SelectionEvent e) {
                        String id = "org.eclipse.ui.preferencePages.GeneralTextEditor";
                        IWorkbenchPreferenceContainer workbenchPreferenceContainer = ((IWorkbenchPreferenceContainer) getContainer());
                        workbenchPreferenceContainer.openPage(id, null);
                    }

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

        colorsAndFontsLinkFieldEditor = new LinkFieldEditor("UNUSED",
                "<a>Colors and Fonts</a>: text font, content assist color ...", appearanceComposite,
                new SelectionListener() {

                    public void widgetSelected(SelectionEvent e) {
                        String id = "org.eclipse.ui.preferencePages.ColorsAndFonts";
                        IWorkbenchPreferenceContainer workbenchPreferenceContainer = ((IWorkbenchPreferenceContainer) getContainer());
                        workbenchPreferenceContainer.openPage(id, null);
                    }

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

        colorsAndFontsLinkFieldEditor = new LinkFieldEditor("UNUSED", "<a>Annotations</a>: occurrences, markers ...",
                appearanceComposite, new SelectionListener() {

                    public void widgetSelected(SelectionEvent e) {
                        String id = "org.eclipse.ui.editors.preferencePages.Annotations";
                        IWorkbenchPreferenceContainer workbenchPreferenceContainer = ((IWorkbenchPreferenceContainer) getContainer());
                        workbenchPreferenceContainer.openPage(id, null);
                    }

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

        return appearanceComposite;
    }
View Full Code Here

        Composite composite = new Composite(parent, SWT.NULL);
        composite.setLayout(new GridLayout());
        composite.setLayoutData(new GridData(GridData.FILL_BOTH));
        composite.setFont(parent.getFont());

        LinkFieldEditor colorsAndFontsLinkFieldEditor = new LinkFieldEditor("UNUSED",
                "To get started with Django in Pydev, a pre-requisite is that Django is \n"
                        + "installed in the Python / Jython / IronPython interpreter you want to use \n"
                        + "(so, \"import django\" must properly work). \n" + "\n"
                        + "It seems that the selected interpreter does not have Django available, so, please\n"
                        + "install Django, reconfigure the interpreter so that Django is recognized\n"
                        + "and then come back to this wizard.\n" + "\n"
                        + "An introduction on how to get started with Django in Pydev is available at:\n"
                        + "<a>http://pydev.org/manual_adv_django.html</a>.\n", composite, new SelectionListener() {

                    public void widgetSelected(SelectionEvent e) {
                        Program.launch("http://pydev.org/manual_adv_django.html");
                    }

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

        setErrorMessage("Django not found.");
        setControl(composite);
    }
View Full Code Here

        if (!PydevRedCorePreferencesInitializer.getUseAptanaThemes()) {
            return false;
        }

        LinkFieldEditor colorsAndFontsLinkFieldEditor = new LinkFieldEditor("UNUSED",
                "Colors handled through <a>Aptana Themes</a>\n", appearanceComposite, new SelectionListener() {

                    public void widgetSelected(SelectionEvent e) {
                        String id = "com.aptana.theme.preferencePage";
                        IWorkbenchPreferenceContainer workbenchPreferenceContainer = ((IWorkbenchPreferenceContainer) prefs
                                .getContainer());
                        workbenchPreferenceContainer.openPage(id, null);
                    }

                    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                  " +
View Full Code Here

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

        LinkFieldEditor prefs = new LinkFieldEditor("PREF_TO_IGNORE_0",
                "\nColors may be changed through the <a>themes</a>.", p, new SelectionListener() {

                    public void widgetSelected(SelectionEvent e) {
                        String id = "com.aptana.theme.preferencePage";
                        IWorkbenchPreferenceContainer workbenchPreferenceContainer = ((IWorkbenchPreferenceContainer) getContainer());
                        workbenchPreferenceContainer.openPage(id, null);
                    }

                    public void widgetDefaultSelected(SelectionEvent e) {
                    }
                });
        addField(prefs);

        prefs = new LinkFieldEditor("PREF_TO_IGNORE_0",
                "\nKeywords colored are defined through the\n<a>templates with the context 'Django tags'</a>.", p,
                new SelectionListener() {

                    public void widgetSelected(SelectionEvent e) {
                        String id = "org.python.pydev.django_templates.templates";
View Full Code Here

        Composite p = getFieldEditorParent();

        addField(new BooleanFieldEditor(USE_MARK_OCCURRENCES, "Mark Occurrences?", p));
        addField(new BooleanFieldEditor(USE_MARK_OCCURRENCES_IN_STRINGS, "Mark Occurrences in strings and comments?", p));

        LinkFieldEditor colorsAndFontsLinkFieldEditor = new LinkFieldEditor("UNUSED",
                "Color of the occurences may be changed at\n" + "<a>Annotations</a>: Occurrences (Pydev)", p,
                new SelectionListener() {

                    public void widgetSelected(SelectionEvent e) {
                        String id = "org.eclipse.ui.editors.preferencePages.Annotations";
                        IWorkbenchPreferenceContainer workbenchPreferenceContainer = ((IWorkbenchPreferenceContainer) getContainer());
                        workbenchPreferenceContainer.openPage(id, null);
                    }

                    public void widgetDefaultSelected(SelectionEvent e) {
                    }
                });
        colorsAndFontsLinkFieldEditor.getLinkControl(p);
    }
View Full Code Here

TOP

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

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.