Examples of PydevDebugPlugin


Examples of org.python.pydev.debug.core.PydevDebugPlugin

     * Have we disposed of the view?
     */
    private boolean disposed = false;

    public PyUnitView() {
        PydevDebugPlugin plugin = PydevDebugPlugin.getDefault();

        if (plugin != null) {
            IPreferenceStore preferenceStore = plugin.getPreferenceStore();
            this.showOnlyErrors = preferenceStore.getBoolean(PYUNIT_VIEW_SHOW_ONLY_ERRORS);
        }

        List<IViewCreatedObserver> participants = ExtensionHelper
                .getParticipants(ExtensionHelper.PYDEV_VIEW_CREATED_OBSERVER);
View Full Code Here

Examples of org.python.pydev.debug.core.PydevDebugPlugin

        IPreferenceStore preferenceStore = PydevDebugPlugin.getDefault().getPreferenceStore();
        preferenceStore.setValue("PY_COVERAGE_NAME_COLUMNS_TO_USE", columns);
    }

    public static int getNameNumberOfColumns() {
        PydevDebugPlugin plugin = PydevDebugPlugin.getDefault();
        if (plugin == null) {
            return DEFAULT_NUMBER_OF_COLUMNS_FOR_NAME;
        }
        IPreferenceStore preferenceStore = plugin.getPreferenceStore();
        int i = preferenceStore.getInt("PY_COVERAGE_NAME_COLUMNS_TO_USE");
        if (i <= 5) {
            return DEFAULT_NUMBER_OF_COLUMNS_FOR_NAME;
        }
        if (i > 256) {
View Full Code Here

Examples of org.python.pydev.debug.core.PydevDebugPlugin

        setDescription("PyDev interactive console preferences.");
        setPreferenceStore(PydevDebugPlugin.getDefault().getPreferenceStore());
    }

    public static int getMaximumAttempts() {
        PydevDebugPlugin plugin = PydevDebugPlugin.getDefault();
        if (plugin != null) {
            return plugin.getPreferenceStore().getInt(
                    PydevConsoleConstants.INTERACTIVE_CONSOLE_MAXIMUM_CONNECTION_ATTEMPTS);
        } else {
            return PydevConsoleConstants.DEFAULT_INTERACTIVE_CONSOLE_MAXIMUM_CONNECTION_ATTEMPTS;
        }
    }
View Full Code Here

Examples of org.python.pydev.debug.core.PydevDebugPlugin

            return PydevConsoleConstants.DEFAULT_INTERACTIVE_CONSOLE_MAXIMUM_CONNECTION_ATTEMPTS;
        }
    }

    public static boolean getFocusConsoleOnStartup() {
        PydevDebugPlugin plugin = PydevDebugPlugin.getDefault();
        if (plugin != null) {
            return plugin.getPreferenceStore().getBoolean(
                    PydevConsoleConstants.INTERACTIVE_CONSOLE_FOCUS_ON_CONSOLE_START);
        } else {
            return PydevConsoleConstants.DEFAULT_INTERACTIVE_CONSOLE_FOCUS_ON_CONSOLE_START;
        }
    }
View Full Code Here

Examples of org.python.pydev.debug.core.PydevDebugPlugin

            return PydevConsoleConstants.DEFAULT_INTERACTIVE_CONSOLE_FOCUS_ON_CONSOLE_START;
        }
    }

    public static boolean getFocusConsoleOnSendCommand() {
        PydevDebugPlugin plugin = PydevDebugPlugin.getDefault();
        if (plugin != null) {
            return plugin.getPreferenceStore().getBoolean(
                    PydevConsoleConstants.INTERACTIVE_CONSOLE_FOCUS_ON_SEND_COMMAND);
        } else {
            return PydevConsoleConstants.DEFAULT_INTERACTIVE_CONSOLE_FOCUS_ON_SEND_COMMAND;
        }
    }
View Full Code Here

Examples of org.python.pydev.debug.core.PydevDebugPlugin

            return PydevConsoleConstants.DEFAULT_INTERACTIVE_CONSOLE_FOCUS_ON_SEND_COMMAND;
        }
    }

    public static boolean getConsoleConnectVariableView() {
        PydevDebugPlugin plugin = PydevDebugPlugin.getDefault();
        if (plugin != null) {
            return plugin.getPreferenceStore().getBoolean(
                    PydevConsoleConstants.INTERACTIVE_CONSOLE_CONNECT_VARIABLE_VIEW);
        } else {
            return PydevConsoleConstants.DEFAULT_INTERACTIVE_CONSOLE_CONNECT_VARIABLE_VIEW;
        }
    }
View Full Code Here

Examples of org.python.pydev.debug.core.PydevDebugPlugin

            return PydevConsoleConstants.DEFAULT_INTERACTIVE_CONSOLE_CONNECT_VARIABLE_VIEW;
        }
    }

    public static boolean getSendCommandOnCreationFromEditor() {
        PydevDebugPlugin plugin = PydevDebugPlugin.getDefault();
        if (plugin != null) {
            return plugin.getPreferenceStore().getBoolean(
                    PydevConsoleConstants.INTERACTIVE_CONSOLE_SEND_INITIAL_COMMAND_WHEN_CREATED_FROM_EDITOR);
        } else {
            return PydevConsoleConstants.DEFAULT_INTERACTIVE_CONSOLE_SEND_INITIAL_COMMAND_WHEN_CREATED_FROM_EDITOR;
        }
    }
View Full Code Here

Examples of org.python.pydev.debug.core.PydevDebugPlugin

     *
     * @param type: see constants at {@link PydevConsoleConstants}
     * @return a color to be used.
     */
    private Color getPreferenceColor(String type) {
        PydevDebugPlugin plugin = PydevDebugPlugin.getDefault();
        if (plugin == null) {
            return null;
        }
        IPreferenceStore preferenceStore = plugin.getPreferenceStore();
        return getColor(PreferenceConverter.getColor(preferenceStore, type));
    }
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.