Examples of KeywordContext


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

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

    {

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