Examples of PositionBasedCompletionProposal


Examples of at.bestsolution.efxclipse.text.jface.templates.contentassist.PositionBasedCompletionProposal

          ICompletionProposal[] proposals= new ICompletionProposal[values.length];
          for (int j= 0; j < values.length; j++) {
            ensurePositionCategoryInstalled(document, model);
            Position pos= new Position(offsets[0] + start, length);
            document.addPosition(getCategory(), pos);
            proposals[j]= new PositionBasedCompletionProposal(values[j], pos, length);
          }

          if (proposals.length > 1)
            first= new ProposalPosition(document, offsets[0] + start, length, proposals);
          else
View Full Code Here

Examples of org.eclipse.php.internal.ui.text.template.contentassist.PositionBasedCompletionProposal

      }

      final char[] triggers = new char[1];
      triggers[triggers.length - 1] = ';';

      ret[i++] = new PositionBasedCompletionProposal(name, pos,
          replacementLength, getImage(), name, null, null, triggers);
    }
    if (!fillBestGuess) {
      // insert a proposal with the argument name
      ICompletionProposal[] extended = new ICompletionProposal[ret.length + 1];
      System.arraycopy(ret, 0, extended, 1, ret.length);
      extended[0] = new PositionBasedCompletionProposal(paramName, pos,
          replacementLength/* paramName.length() */, null, paramName,
          null, null, NO_TRIGGERS);
      return extended;
    }
    return ret;
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.