Package com.dubture.symfony.twig.codeassist

Source Code of com.dubture.symfony.twig.codeassist.TwigCompletionContextResolver

/*******************************************************************************
* This file is part of the Symfony eclipse plugin.
*
* (c) Robert Gruendler <r.gruendler@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
package com.dubture.symfony.twig.codeassist;

import org.eclipse.php.core.codeassist.ICompletionContext;

import com.dubture.symfony.twig.codeassist.context.RouteCompletionContext;
import com.dubture.symfony.twig.codeassist.context.TemplateVariableCompletionContext;
import com.dubture.symfony.twig.codeassist.context.TemplateVariableFieldCompletionContext;
import com.dubture.symfony.twig.codeassist.context.TranslationCompletionContext;
import com.dubture.symfony.twig.codeassist.context.ViewPathArgumentContext;
import com.dubture.twig.core.codeassist.ITwigCompletionContextResolver;


/**
*
* Contributes Symfony2 completion contexts to the Twig
* plugin.
*
*
* @author Robert Gruendler <r.gruendler@gmail.com>
*
*/
public class TwigCompletionContextResolver implements
    ITwigCompletionContextResolver {

  public TwigCompletionContextResolver() {

  }

  @Override
  public ICompletionContext[] createContexts() {
   
    return new ICompletionContext[] {
        new TemplateVariableCompletionContext(),
        new TemplateVariableFieldCompletionContext(),
        new RouteCompletionContext(),
        new ViewPathArgumentContext(),
        new TranslationCompletionContext(),
       
    };
  }
}
TOP

Related Classes of com.dubture.symfony.twig.codeassist.TwigCompletionContextResolver

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.