Package org.epic.perleditor.templates

Examples of org.epic.perleditor.templates.DocumentTemplateContext


        Point selection = viewer.getSelectedRange();
        ((CompilationUnitContextType) contextType).setContextParameters(
            document, completionPosition, selection.y);

        DocumentTemplateContext context =
            (DocumentTemplateContext) contextType.createContext();

        int start = context.getStart();
        int end = context.getEnd();
        IRegion region = new Region(start, end - start);

        Template[] templates = Templates.getInstance().getTemplates();
        for (int i = 0; i != templates.length; i++)
        {
            if (context.canEvaluate(templates[i]))
            {
                proposals.add(new TemplateProposal(
                    templates[i],
                    context,
                    region,
View Full Code Here

TOP

Related Classes of org.epic.perleditor.templates.DocumentTemplateContext

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.