Package com.intellij.openapi.editor

Examples of com.intellij.openapi.editor.EditorFactory.createDocument()


    private void createEditors(JUnitGeneratorSettings settings) {
        EditorFactory factory = EditorFactory.getInstance();
        //create the editors
        for (Map.Entry<String, String> entry : settings.getVmTemplates().entrySet()) {
            final Document velocityTemplate = factory.createDocument(entry.getValue() != null ? entry.getValue() : "");
            try {
                final Editor editor =
                        factory.createEditor(velocityTemplate, this.project, FileTypeManager.getInstance().getFileTypeByExtension("vm"), false);
                editor.getContentComponent().addKeyListener(new KeyAdapter() {
                    @Override
View Full Code Here


        }
    }

    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);
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.