Package com.aptana.interactive_console.console.ui

Examples of com.aptana.interactive_console.console.ui.ScriptConsoleManager


            @Override
            protected IStatus run(IProgressMonitor monitor) {
                monitor.beginTask("Create Interactive Console", 10);
                IStatus returnStatus = Status.OK_STATUS;
                try {
                    ScriptConsoleManager manager = ScriptConsoleManager.getInstance();
                    monitor.worked(1);
                    JSConsole console = new JSConsole(interpreter, additionalInitialComands);
                    monitor.worked(1);
                    manager.add(console, true);
                } catch (Exception e) {
                    Log.log(e);
                    returnStatus = new Status(IStatus.ERROR, JsInteractiveConsolePlugin.PLUGIN_ID,
                            "Error initializing console.", e);
View Full Code Here


            @Override
            protected IStatus run(IProgressMonitor monitor) {
                monitor.beginTask("Create Interactive Console", 10);
                IStatus returnStatus = Status.OK_STATUS;
                try {
                    ScriptConsoleManager manager = ScriptConsoleManager.getInstance();
                    PydevConsole console;
                    if (interpreter.getFrame() == null) {
                        monitor.worked(1);
                        console = new PydevConsole(interpreter, additionalInitialComands);
                        monitor.worked(1);
                        try {
                            createDebugTarget(interpreter, console, new SubProgressMonitor(monitor, 8));
                        } catch (UserCanceledException uce) {
                            return Status.CANCEL_STATUS;

                        } catch (Exception e) {
                            //Just set the return status, but keep on going to add the console to the manager (as the message says).
                            returnStatus = PydevDebugPlugin
                                    .makeStatus(
                                            IStatus.ERROR,
                                            "Unable to connect debugger to Interactive Console\n"
                                                    + "The interactive console will continue to operate without the additional debugger features",
                                            e);
                        }
                        manager.add(console, true);
                    }

                } catch (Exception e) {
                    Log.log(e);
                    returnStatus = PydevDebugPlugin.makeStatus(IStatus.ERROR, "Error initializing console.", e);
View Full Code Here

     */
    public void createDebugConsole(PyStackFrame frame, String additionalInitialComands) throws Exception {
        PydevConsoleLaunchInfo launchAndProcess = new PydevConsoleLaunchInfo(null, null, 0, null, frame);

        PydevConsoleInterpreter interpreter = createPydevDebugInterpreter(launchAndProcess);
        ScriptConsoleManager manager = ScriptConsoleManager.getInstance();
        PydevDebugConsole console = new PydevDebugConsole(interpreter, additionalInitialComands);
        manager.add(console, true);
    }
View Full Code Here

TOP

Related Classes of com.aptana.interactive_console.console.ui.ScriptConsoleManager

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.