Examples of ICompletionContext


Examples of org.eclipse.php.core.codeassist.ICompletionContext

  public LocalMethodVariablesStrategyForArray(ICompletionContext context) {
    super(context);
  }

  public void apply(ICompletionReporter reporter) throws Exception {
    ICompletionContext context = getContext();
    if (!(context instanceof ArrayKeyContext)) {
      return;
    }

    ArrayKeyContext arrayContext = (ArrayKeyContext) context;
View Full Code Here

Examples of org.eclipse.php.core.codeassist.ICompletionContext

  public InterfaceDeclarationKeywordsStrategy(ICompletionContext context) {
    super(context);
  }

  public void apply(ICompletionReporter reporter) throws BadLocationException {
    ICompletionContext context = getContext();
    if (!(context instanceof InterfaceDeclarationKeywordContext)) {
      return;
    }
   
    InterfaceDeclarationKeywordContext concreteContext = (InterfaceDeclarationKeywordContext) context;
View Full Code Here

Examples of org.eclipse.php.core.codeassist.ICompletionContext

        && completionContext.getPrefix().indexOf(
            NamespaceReference.NAMESPACE_SEPARATOR) >= 0) {
      return;
    }
    super.apply(reporter);
    ICompletionContext context = getContext();
    AbstractCompletionContext concreteContext = (AbstractCompletionContext) context;
    addSelf(concreteContext, reporter);
  }
View Full Code Here

Examples of org.eclipse.php.core.codeassist.ICompletionContext

    return (keyword.context & PHPKeywords.GLOBAL) == 0;
  }

  @Override
  public void apply(ICompletionReporter reporter) throws BadLocationException {
    ICompletionContext context = getContext();
    AbstractCompletionContext abstractContext = (AbstractCompletionContext) context;
    if (abstractContext.getPrefixWithoutProcessing().trim().length() == 0) {
      return;
    }
    super.apply(reporter);
View Full Code Here

Examples of org.eclipse.php.core.codeassist.ICompletionContext

  public GotoStatementStrategy(ICompletionContext context) {
    super(context);
  }

  public void apply(ICompletionReporter reporter) throws BadLocationException {
    ICompletionContext context = getContext();

    GotoStatementContext gotoStatementContext = (GotoStatementContext) context;

    String prefix = gotoStatementContext.getPrefix();
    if (prefix.startsWith("$")) { //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.php.core.codeassist.ICompletionContext

  public GlobalConstantsStrategy(ICompletionContext context) {
    super(context);
  }

  public void apply(ICompletionReporter reporter) throws BadLocationException {
    ICompletionContext context = getContext();

    AbstractCompletionContext abstractContext = (AbstractCompletionContext) context;
    CompletionRequestor requestor = abstractContext
        .getCompletionRequestor();
View Full Code Here

Examples of org.eclipse.php.core.codeassist.ICompletionContext

  public NamespaceDocTypesStrategy(ICompletionContext context) {
    super(context);
  }

  public void apply(ICompletionReporter reporter) throws BadLocationException {
    ICompletionContext context = getContext();
    if (!(context instanceof NamespacePHPDocVarStartContext)) {
      return;
    }

    NamespacePHPDocVarStartContext concreteContext = (NamespacePHPDocVarStartContext) context;
View Full Code Here

Examples of org.eclipse.php.core.codeassist.ICompletionContext

            NamespaceReference.NAMESPACE_SEPARATOR) >= 0) {
      return;
    }

    super.apply(reporter);
    ICompletionContext context = getContext();
    AbstractCompletionContext concreteContext = (AbstractCompletionContext) context;
    addSelf(concreteContext, reporter);
  }
View Full Code Here

Examples of org.eclipse.php.core.codeassist.ICompletionContext

  public ArrayStringKeysStrategy(ICompletionContext context) {
    super(context);
  }

  public void apply(ICompletionReporter reporter) throws BadLocationException {
    ICompletionContext context = getContext();
    if (!(context instanceof ArrayKeyContext)) {
      return;
    }

    SourceRange replaceRange = getReplacementRange(context);
View Full Code Here

Examples of org.eclipse.php.core.codeassist.ICompletionContext

  public ClassMethodsStrategy(ICompletionContext context) {
    super(context);
  }

  public void apply(ICompletionReporter reporter) throws BadLocationException {
    ICompletionContext context = getContext();
    if (!(context instanceof ClassMemberContext)) {
      return;
    }

    ClassMemberContext concreteContext = (ClassMemberContext) context;
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.