Examples of AbstractCompletionContext


Examples of org.eclipse.php.internal.core.codeassist.contexts.AbstractCompletionContext

  public void apply(ICompletionReporter reporter) throws BadLocationException {

    ICompletionContext context = getContext();

    AbstractCompletionContext abstractContext = (AbstractCompletionContext) context;
    CompletionRequestor requestor = abstractContext
        .getCompletionRequestor();

    if (abstractContext.getPrefixWithoutProcessing().trim().length() == 0) {
      return;
    }

    String prefix = abstractContext.getPrefix();
    if (prefix.startsWith("$")) { //$NON-NLS-1$
      return;
    }

    MatchRule matchRule = MatchRule.PREFIX;
View Full Code Here

Examples of org.eclipse.php.internal.core.codeassist.contexts.AbstractCompletionContext

    ICompletionContext context = getContext();
    if (!(context instanceof AbstractCompletionContext)) {
      return;
    }

    AbstractCompletionContext abstractContext = (AbstractCompletionContext) context;
    int offset = abstractContext.getOffset();
    ISourceModule sourceModule = abstractContext.getSourceModule();
    List<String> useTypes = abstractContext.getUseTypes();
    String prefix = abstractContext.getPrefix();
    ModuleDeclaration moduleDeclaration = SourceParserUtil
        .getModuleDeclaration(sourceModule, null);
    FileContext fileContext = new FileContext(sourceModule,
        moduleDeclaration, offset);
    SourceRange replacementRange = getReplacementRange(abstractContext);
View Full Code Here

Examples of org.eclipse.php.internal.core.codeassist.contexts.AbstractCompletionContext

  }
 
  @Override
  public void apply(ICompletionReporter reporter) throws BadLocationException {
   
    AbstractCompletionContext context = (AbstractCompletionContext) getContext();
   
    //TODO: this needs caching!!!
    ISourceModule module = context.getSourceModule();   
    List<Route> routes = SymfonyModelAccess.getDefault().findRoutes(module.getScriptProject());   
    SourceRange range = getReplacementRange(context);
   
    SymfonyModelAccess model = SymfonyModelAccess.getDefault();
   
    String prefix = context.getPrefix();
   
    for (Route route : routes) {

      IType controller = model.findController(route.bundle, route.controller, context.getSourceModule().getScriptProject());
     
      if (controller == null) {
        continue;
      }
     
View Full Code Here

Examples of org.eclipse.php.internal.core.codeassist.contexts.AbstractCompletionContext

    }

    public void apply(ICompletionReporter reporter) throws BadLocationException {

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

View Full Code Here

Examples of org.eclipse.php.internal.core.codeassist.contexts.AbstractCompletionContext

  }
 
  @Override
  public void apply(ICompletionReporter reporter) throws BadLocationException {
   
    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();
   
    for (Route route : routes) {

      IType controller = model.findController(route.bundle, route.controller, context.getSourceModule().getScriptProject());
     
      if (controller == null)
        continue;
     
      if (CodeAssistUtils.startsWithIgnoreCase(route.name, prefix)) {
View Full Code Here
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.