Package com.dubture.symfony.core.codeassist.contexts

Examples of com.dubture.symfony.core.codeassist.contexts.AnnotationCompletionContext


    if (!(ctx instanceof AnnotationCompletionContext)) {
      return;
    }   

    AnnotationCompletionContext context = (AnnotationCompletionContext) ctx;
    SourceRange replaceRange = getReplacementRange(context);

    annotations = SymfonyModelAccess.getDefault().findAnnotationClasses(context.getSourceModule().getScriptProject());

    String suffix = "()";   
    String prefix = context.getPrefix();

    IType[] types = getTypes(context, prefix);
    for (IType type : types) {
      if (annotations.containsKey(type.getElementName())) {
        String qualifier = annotations.get(type.getElementName());
View Full Code Here


  @Override
  public ICompletionContext[] createContexts() {

    return new ICompletionContext[] {
        new AnnotationCompletionContext(),
        new ServiceContainerContext(),
        new TemplateVariableContext(),
        new RouteCompletionContext(),
        new ViewPathArgumentContext(),
        new EntityCompletionContext(),
View Full Code Here

TOP

Related Classes of com.dubture.symfony.core.codeassist.contexts.AnnotationCompletionContext

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.