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

Examples of com.dci.intellij.dbn.execution.statement.processor.StatementExecutionProcessor


        return connectionHandler != null && !connectionHandler.isVirtual() && connectionHandler.getConnectionStatus().isValid() && !connectionHandler.getLoadMonitor().isLoading();
    }

    private void annotateExecutable(ExecutablePsiElement executablePsiElement, AnnotationHolder holder) {
        if (!executablePsiElement.isNestedExecutable()) {
            StatementExecutionProcessor executionProcessor = executablePsiElement.getExecutionProcessor();
            if (executionProcessor != null) {
                Annotation annotation = holder.createInfoAnnotation(executablePsiElement, null);
                annotation.setGutterIconRenderer(new StatementGutterRenderer(executionProcessor));
            }
        }
View Full Code Here


    }

    private void annotateExecutable(PsiElement psiElement, AnnotationHolder holder) {
        ExecutablePsiElement executable = (ExecutablePsiElement) psiElement;
        if (!executable.isNestedExecutable()) {
            StatementExecutionProcessor executionProcessor = executable.getExecutionProcessor();
            if (executionProcessor != null) {
                Annotation annotation = holder.createInfoAnnotation(psiElement, null);
                annotation.setGutterIconRenderer(new StatementGutterRenderer(executionProcessor));
            }
        }
View Full Code Here

            return true;
        }
    }

    public void executeSelectedStatement(Editor editor) {
        StatementExecutionProcessor executionProcessor = getExecutionProcessorAtCursor(editor);
        if (executionProcessor != null) {
            fireExecution(executionProcessor);
        } else {
            DBLanguageFile file = (DBLanguageFile) DocumentUtil.getFile(editor);
            List<StatementExecutionProcessor> executionProcessors = getExecutionProcessors(file);
View Full Code Here

        while (child != null) {
            if (child instanceof RootPsiElement) {
                RootPsiElement root = (RootPsiElement) child;

                for (ExecutablePsiElement executable: root.getExecutablePsiElements()) {
                    StatementExecutionProcessor executionProcessor = executable.getExecutionProcessor();
                    statements.add(executionProcessor);
                }
            }
            child = child.getNextSibling();
        }
View Full Code Here

    private void cleanup() {
        synchronized(executionProcessors) {
            Iterator iterator = executionProcessors.iterator();
            while (iterator.hasNext()) {
                StatementExecutionProcessor executionProcessor = (StatementExecutionProcessor) iterator.next();
                if (executionProcessor.isOrphan()) {
                    iterator.remove();
                }
            }
            if (executionProcessors.size() == 0) {
                sequence = 0;
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.execution.statement.processor.StatementExecutionProcessor

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.