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

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



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

    VariableFieldContext ctx = (VariableFieldContext) getContext();
    String varName = ctx.getVariable();
    TemplateField var = SymfonyModelAccess.getDefault().findTemplateVariableType("$" + varName, ctx.getSourceModule());
   
    if (var == null) {
      return;
    }
   
    String className = var.getClassName();
    IDLTKSearchScope scope = SearchEngine.createSearchScope(ctx.getSourceModule().getScriptProject());
   
    String prefix = ctx.getPrefix();
   
    SourceRange range = getReplacementRange(getContext());
   
    if (className != null) {
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());
        contexts.add(new TagContext());
        contexts.add(new TestContext());
View Full Code Here

TOP

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

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.