Examples of EditorEx


Examples of com.intellij.openapi.editor.ex.EditorEx

    private Editor createEditor() {
        EditorFactory editorFactory = EditorFactory.getInstance();
        Document editorDocument = editorFactory.createDocument("");
        Editor editor = editorFactory.createEditor(editorDocument, project);
        fillEditorSettings(editor.getSettings());
        EditorEx editorEx = (EditorEx) editor;
        attachHighlighter(editorEx);
        operatorCompletionAction = new OperatorCompletionAction(editor);
        return editor;
    }
View Full Code Here

Examples of com.intellij.openapi.editor.ex.EditorEx

            final SettingsProviderComponent settingsProvider = SettingsProviderComponent.getInstance();
            final List<OutPair> outPairs = settingsProvider.getOutPairs(filePath);
            // Apply editorconfig settings for the current editor
            applyCodeStyleSettings(outPairs, newSettings, file);
            codeStyleSettingsManager.setTemporarySettings(newSettings);
            final EditorEx currentEditor = (EditorEx) FileEditorManager.getInstance(project).getSelectedTextEditor();
            if (currentEditor != null){
                currentEditor.reinitSettings();
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.