Package com.intellij.codeInsight.template

Examples of com.intellij.codeInsight.template.TemplateEditingAdapter


            GoVarDeclarations lastVar = globalVariables[globalVariables.length - 1];
            template = createAppendGlobalVariableTemplate(editor, lastVar, startElement);
        }

        if (template != null) {
            TemplateManager.getInstance(project).startTemplate(editor, template, new TemplateEditingAdapter() {
                @Override
                public void templateFinished(Template template, boolean brokenOff) {
                    editor.getCaretModel().moveToOffset(rangeMarker.getEndOffset());
                }
            });
View Full Code Here


        }

        editor.getCaretModel().moveToOffset(doc.getLineStartOffset(line));

        TemplateImpl template = createTemplate(variableName);
        TemplateManager.getInstance(project).startTemplate(editor, template, new TemplateEditingAdapter() {
            @Override
            public void templateFinished(Template template, boolean brokenOff) {
                int offset;
                if (rangeMarker != null) {
                    offset = rangeMarker.getEndOffset();
View Full Code Here

TOP

Related Classes of com.intellij.codeInsight.template.TemplateEditingAdapter

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.