Package com.dci.intellij.dbn.common.thread

Examples of com.dci.intellij.dbn.common.thread.CommandWriteActionRunner


                EditorHighlighter editorHighlighter = HighlighterFactory.createHighlighter(syntaxHighlighter, editor.getColorsScheme());
                ((EditorEx) editor).setHighlighter(editorHighlighter);
            }
        }

        new CommandWriteActionRunner(editor.getProject()) {
            public void run() {
                // touch the editor to trigger parsing

                String text = document.getText();
                BlockSupport.getInstance(file.getProject()).reparseRange(file, 0, text.length(), text);
View Full Code Here


        clipboard.setContents(new StringSelection(result.getStatement()), null);
        MessageUtil.showInfoMessage("SQL statement exported to clipboard.", "Statement extracted");
    }

    private void pasteToEditor(final Editor editor, final StatementGeneratorResult generatorResult) {
        new CommandWriteActionRunner(editor.getProject(), "Extract statement") {
            @Override
            public void run() {
                String statement = generatorResult.getStatement();
                PsiUtil.moveCaretOutsideExecutable(editor);
                int offset = EditorModificationUtil.insertStringAtCaret(editor, statement + "\n\n", false, true);
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.common.thread.CommandWriteActionRunner

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.