/******************************************************************************* * 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.context; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jface.text.IDocument; import com.dubture.twig.core.codeassist.context.VariableFieldContext; /** * * Is a valid completion context when staying after a twig * field delimiter. * * <pre> * * {{ form.| <-- a valid context * * </pre> * * * @author Robert Gruendler <r.gruendler@gmail.com> * */ public class TemplateVariableFieldCompletionContext extends VariableFieldContext { @Override public boolean isValid(IDocument template, int offset, IProgressMonitor monitor) { if (!super.isValid(template, offset, monitor)) { return false; } return true; } }