Package org.eclipse.php.core.codeassist

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


    super(context);
  }

  public void apply(ICompletionReporter reporter) throws BadLocationException {

    ICompletionContext context = getContext();
    NamespaceMemberContext concreteContext = (NamespaceMemberContext) context;
    CompletionRequestor requestor = concreteContext
        .getCompletionRequestor();

    IType enclosingClass = null;
View Full Code Here


    this(context, 0, 0);
  }

  public void apply(ICompletionReporter reporter) throws BadLocationException {

    ICompletionContext context = getContext();
    AbstractCompletionContext concreteContext = (AbstractCompletionContext) context;

    enclosingClass = null;
    try {
      IModelElement enclosingElement = concreteContext.getSourceModule()
View Full Code Here

    return replacementRange;
  }

  public void apply(ICompletionReporter reporter) throws BadLocationException {

    ICompletionContext context = getContext();
    AbstractCompletionContext abstractContext = (AbstractCompletionContext) context;
    if (abstractContext.getCompletionRequestor() instanceof IPHPCompletionRequestor) {
      IPHPCompletionRequestor phpCompletionRequestor = (IPHPCompletionRequestor) abstractContext
          .getCompletionRequestor();
      if (phpCompletionRequestor.filter(CompletionFlag.STOP_REPORT_TYPE)) {
View Full Code Here

      throws BadLocationException {
    if (aliasAdded) {
      return;
    }
    aliasAdded = true;
    ICompletionContext context = getContext();
    AbstractCompletionContext abstractContext = (AbstractCompletionContext) context;
    if (!abstractContext.getCompletionRequestor()
        .isContextInformationMode()) {
      // get types for alias
      String prefix = abstractContext.getPrefixWithoutProcessing();
View Full Code Here

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

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

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

  public ClassFieldsStrategy(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

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

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

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

    super(context);
  }

  public void apply(ICompletionReporter reporter) throws BadLocationException {

    ICompletionContext context = getContext();
    AbstractCompletionContext abstractContext = (AbstractCompletionContext) context;
    String prefix = abstractContext.getPrefix();

    if (prefix.length() > 0 && !prefix.startsWith("$")) { //$NON-NLS-1$
      return;
View Full Code Here

        id, true, null);
  }

  @Override
  protected IDLTKSearchScope createSearchScope() {
    ICompletionContext context = getContext();
    AbstractCompletionContext abstractContext = (AbstractCompletionContext) context;
    if (abstractContext.getPrefixWithoutProcessing().trim().length() == 0) {
      ISourceModule sourceModule = ((AbstractCompletionContext) context)
          .getSourceModule();
      return SearchEngine.createSearchScope(sourceModule);
View Full Code Here

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

  public void apply(ICompletionReporter reporter) throws BadLocationException {
    ICompletionContext context = getContext();
    if (!(context instanceof PHPDocTagContext)) {
      return;
    }
    PHPDocTagContext tagContext = (PHPDocTagContext) context;
    String tagName = tagContext.getTagName();
View Full Code Here

TOP

Related Classes of org.eclipse.php.core.codeassist.ICompletionContext

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.