Package com.dubture.twig.core.codeassist.context

Examples of com.dubture.twig.core.codeassist.context.KeywordContext


    @Override
    public void apply(ICompletionReporter reporter) throws Exception
    {

        KeywordContext ctx = (KeywordContext) getContext();
        String prefix = ctx.getPrefix();
        SourceRange range = getReplacementRange(getContext());

        for (String keyword : KEYWORDS) {
            if (CodeAssistUtils.startsWithIgnoreCase(keyword, prefix)) {
                reporter.reportKeyword(keyword, "", range);
View Full Code Here


    {

        List<ICompletionContext> contexts = new ArrayList<ICompletionContext>();

        contexts.add(new AbstractTwigCompletionContext());
        contexts.add(new KeywordContext());
        contexts.add(new FilterContext());
        contexts.add(new VariableFieldContext());
        contexts.add(new TemplateVariablesContext());
        contexts.add(new QuotesContext());
        contexts.add(new FunctionContext());
View Full Code Here

TOP

Related Classes of com.dubture.twig.core.codeassist.context.KeywordContext

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.