Package org.eclipse.dltk.internal.core

Examples of org.eclipse.dltk.internal.core.SourceRange


      ICompletionContext context = getContext();
      AbstractCompletionContext abstractContext = (AbstractCompletionContext) context;
      if (abstractContext.getPrefixWithoutProcessing().trim().length() == 0) {
        return;
      }
      SourceRange replacementRange = getReplacementRange(abstractContext);


      IType[] types = getTypes(abstractContext);
      // now we compute type suffix in PHPCompletionProposalCollector
      String suffix = "";//$NON-NLS-1$
View Full Code Here


   
    AbstractCompletionContext context = (AbstractCompletionContext) getContext();
   
    ISourceModule module = context.getSourceModule();   
    List<Route> routes = SymfonyModelAccess.getDefault().findRoutes(module.getScriptProject());   
    SourceRange range = getReplacementRange(context);
   
    SymfonyModelAccess model = SymfonyModelAccess.getDefault();
   
    String prefix = context.getPrefix();
   
View Full Code Here

 
  @Override
  public void apply(ICompletionReporter reporter) throws BadLocationException
  {
    ViewPathArgumentContext context = (ViewPathArgumentContext) getContext();   
    SourceRange range = getReplacementRange(context);
    CodeassistUtils.reportViewpath(reporter, context.getViewPath(),
            context.getPrefix(), range, context.getSourceModule().getScriptProject());

  }
View Full Code Here

        ServiceContainerContext context = (ServiceContainerContext) getContext();
        IScriptProject project = context.getSourceModule().getScriptProject();

        SymfonyModelAccess model= SymfonyModelAccess.getDefault();
        List<Service> services = model.findServices(project.getPath());
        SourceRange range = getReplacementRange(context);

        String prefix = context.getPrefix();

        if (services == null) {
            return;
View Full Code Here

    public void apply(ICompletionReporter reporter) throws BadLocationException {

        EntityCompletionContext context = (EntityCompletionContext) getContext();
        SymfonyModelAccess model = SymfonyModelAccess.getDefault();
        IScriptProject project = context.getSourceModule().getScriptProject();
        SourceRange range = getReplacementRange(context);
        IDLTKSearchScope projectScope = SearchEngine.createSearchScope(context.getSourceModule().getScriptProject());
        DoctrineModelAccess doctrineModel =  DoctrineModelAccess.getDefault();
        IModelAccessCache cache = null;
        if (context instanceof IModelCacheContext) {
          cache = ((IModelCacheContext) context).getCache();
View Full Code Here

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

    TemplateVariableContext ctxt = (TemplateVariableContext) getContext();
    SourceRange range = getReplacementRange(getContext());
    String viewPath = ctxt.getViewPath();
   
    for(TemplateField element : ctxt.getVariables()) {

      if (viewPath.equals(element.getViewPath())) {
View Full Code Here

    if (!req.getClass().getName().contains("Symfony")) {
      return;     
    }
   
    IScriptProject project = context.getSourceModule().getScriptProject();
    SourceRange range = getReplacementRange(context);   
    String prefix = context.getPrefix();
   
    CodeassistUtils.reportTranslations(reporter, prefix, range, project );   

  }
View Full Code Here

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

    public void apply(ICompletionReporter reporter) throws Exception
    {

        KeywordContext ctx = (KeywordContext) getContext();
        String prefix = ctx.getPrefix();
        SourceRange range = getReplacementRange(getContext());

        for (String keyword : KEYWORDS) {
            if (CodeAssistUtils.startsWithIgnoreCase(keyword, prefix)) {
                reporter.reportKeyword(keyword, "", range);
            }
View Full Code Here

        TagContext ctx = (TagContext) getContext();
        ISourceModule module = ctx.getSourceModule();
        Tag[] tags = TwigModelAccess.getDefault().findTags(
                module.getScriptProject());
        SourceRange range = getReplacementRange(ctx);

        String prefix = ctx.getPrefix();

        for (Tag tag : tags) {
            if (CodeAssistUtils.startsWithIgnoreCase(tag.getElementName(),
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.core.SourceRange

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.