Package org.python.pydev.debug.model

Examples of org.python.pydev.debug.model.AbstractDebugTarget


        if (context instanceof PyStackFrame) {
            PyStackFrame stackFrame = (PyStackFrame) context;
            if (!stackFrame.isTerminated() && stackFrame.isSuspended()) {
                if (console != null) {
                    //If a console is passed, we must check if it matches the console from the selected frame.
                    AbstractDebugTarget target = (AbstractDebugTarget) stackFrame.getAdapter(IDebugTarget.class);
                    if (DebugUITools.getConsole(target.getProcess()) != console) {
                        return null;
                    }
                }

                return stackFrame;
View Full Code Here


            this.actTok = actTok;
            this.offset = offset;
            PyStackFrame stackFrame = getCurrentSuspendedPyStackFrame(null);

            if (stackFrame != null) {
                AbstractDebugTarget target = (AbstractDebugTarget) stackFrame.getAdapter(IDebugTarget.class);
                if (target != null) {
                    GetCompletionsCommand cmd = new GetCompletionsCommand(target, actTok, stackFrame.getLocalsLocator()
                            .getPyDBLocation());
                    cmd.setCompletionListener(this);
                    target.postCommand(cmd);
                }
                return waitForCommand();
            }
            return EMPTY_COMPLETION_PROPOSALS;
        }
View Full Code Here

                    e1.printStackTrace();
                }
            }

            if (done || socket == null || !socket.isConnected()) {
                AbstractDebugTarget target = remote;

                if (target != null) {
                    target.terminate();
                }
                done = true;
            }
        }
    }
View Full Code Here

     *
     * @param consoleId
     * @param command
     */
    public void executeCommand(String command) {
        AbstractDebugTarget target = frame.getTarget();
        String locator = getLocator(frame.getThreadId(), frame.getId(), "EVALUATE", command);
        AbstractDebuggerCommand cmd = new EvaluateConsoleExpressionCommand(target, locator,
                new ICommandResponseListener() {

                    public void commandComplete(AbstractDebuggerCommand cmd) {
                        frame.forceGetNewVariables();
                        EvaluateDebugConsoleExpression.this.commandComplete(cmd);
                    }
                });
        target.postCommand(cmd);
    }
View Full Code Here

     * @param consoleId
     * @param actTok
     * @param offset
     */
    public String getCompletions(String actTok, int offset) {
        AbstractDebugTarget target = frame.getTarget();
        String locator = getLocator(frame.getThreadId(), frame.getId(), "GET_COMPLETIONS", actTok);
        AbstractDebuggerCommand cmd = new EvaluateConsoleExpressionCommand(target, locator, this);
        target.postCommand(cmd);
        return waitForCommand();
    }
View Full Code Here

            IAdaptable context = DebugUITools.getDebugContext();
            if (context != null) {
                s = StringUtils.rightTrim(s);
                Object adapter = context.getAdapter(IDebugTarget.class);
                if (adapter instanceof AbstractDebugTarget) {
                    AbstractDebugTarget target = (AbstractDebugTarget) adapter;

                    for (IConsoleInputListener listener : participants) {
                        listener.newLineReceived(s, target);
                    }
                }
View Full Code Here

TOP

Related Classes of org.python.pydev.debug.model.AbstractDebugTarget

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.