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

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


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

        ICompletionContext context = getContext();
        AbstractTwigCompletionContext abstractContext = (AbstractTwigCompletionContext) context;
        String prefix = abstractContext.getPrefix();

        IField[] fields = PHPModelUtils.getFileFields(
                abstractContext.getSourceModule(), prefix, false, null);

        SourceRange replaceRange = getReplacementRange(context);

        for (IModelElement var : fields) {
            if (CodeAssistUtils.startsWithIgnoreCase(var.getElementName(),
View Full Code Here


    public ICompletionContext[] createContexts()
    {

        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());
View Full Code Here

TOP

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

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.