Package com.dci.intellij.dbn.execution.statement

Examples of com.dci.intellij.dbn.execution.statement.StatementExecutionManager


        return false;
    }

    public void invoke(@NotNull Project project, Editor editor, PsiFile psiFile) throws IncorrectOperationException {
        ExecutablePsiElement executable = PsiUtil.lookupExecutableAtCaret(psiFile);
        StatementExecutionManager executionManager = StatementExecutionManager.getInstance(project);
        executionManager.fireExecution(executable.getExecutionProcessor());
        DocumentUtil.refreshEditorAnnotations(executable.getFile());
    }
View Full Code Here


        super(astNode, elementType);
    }

    public synchronized StatementExecutionBasicProcessor getExecutionProcessor() {
        if (executionProcessor == null || !executionProcessor.matches(this, false)) {
            StatementExecutionManager  statementExecutionManager = StatementExecutionManager.getInstance(getProject());
            executionProcessor = statementExecutionManager.locateExecutionProcessor(this);
            if (executionProcessor == null) {
                executionProcessor = statementExecutionManager.createExecutionProcessor(this);
            }
        }
        return executionProcessor;
    }
View Full Code Here

        this.executionProcessor = executionProcessor;
    }

    public void actionPerformed(AnActionEvent e) {
        if (executionProcessor.canExecute()) {
            StatementExecutionManager executionManager = StatementExecutionManager.getInstance(executionProcessor.getProject());
            executionManager.fireExecution(executionProcessor);
        } else {
            executionProcessor.navigateToResult();
        }
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.execution.statement.StatementExecutionManager

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.