Examples of PHPDocTagContext


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

  public void apply(ICompletionReporter reporter) throws BadLocationException {
    ICompletionContext context = getContext();
    if (!(context instanceof PHPDocTagContext)) {
      return;
    }
    PHPDocTagContext tagContext = (PHPDocTagContext) context;
    String tagName = tagContext.getTagName();
    CompletionRequestor requestor = tagContext.getCompletionRequestor();

    SourceRange replaceRange = getReplacementRange(tagContext);
    String suffix = ""; //$NON-NLS-1$

    for (String nextTag : PHPDOC_TAGS) {
View Full Code Here

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

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

    String prefix = tagContext.getPrefix();
    String prev = tagContext.getPreviousWord();
    if (prefix.startsWith("$")) { //$NON-NLS-1$
      super.apply(reporter);
    } else if (prev.equalsIgnoreCase("param")) { //$NON-NLS-1$
      final PHPDocReturnTypeStrategy returnStrategy = new PHPDocReturnTypeStrategy(
          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.