Package org.eclipse.jface.text.contentassist

Examples of org.eclipse.jface.text.contentassist.ICompletionProposalExtension2.validate()


  private boolean validateProposal(IDocument document, ICompletionProposal p, int offset, DocumentEvent event) {
    // detect selected
    if (p instanceof ICompletionProposalExtension2) {
      ICompletionProposalExtension2 e= (ICompletionProposalExtension2) p;
      if (e.validate(document, offset, event))
        return true;
    } else if (p instanceof ICompletionProposalExtension) {
      ICompletionProposalExtension e= (ICompletionProposalExtension) p;
      if (e.isValidFor(document, offset))
        return true;
View Full Code Here


    for (int i= 0; i < length; i++) {

      if (proposals[i] instanceof ICompletionProposalExtension2) {

        ICompletionProposalExtension2 p= (ICompletionProposalExtension2) proposals[i];
        if (p.validate(document, offset, event))
          filtered.add(p);

      } else if (proposals[i] instanceof ICompletionProposalExtension) {

        ICompletionProposalExtension p= (ICompletionProposalExtension) proposals[i];
View Full Code Here

  private boolean validateProposal(IDocument document, ICompletionProposal p, int offset, DocumentEvent event) {
    // detect selected
    if (p instanceof ICompletionProposalExtension2) {
      ICompletionProposalExtension2 e= (ICompletionProposalExtension2) p;
      if (e.validate(document, offset, event))
        return true;
    } else if (p instanceof ICompletionProposalExtension) {
      ICompletionProposalExtension e= (ICompletionProposalExtension) p;
      if (e.isValidFor(document, offset))
        return true;
View Full Code Here

    for (int i= 0; i < length; i++) {

      if (proposals[i] instanceof ICompletionProposalExtension2) {

        ICompletionProposalExtension2 p= (ICompletionProposalExtension2) proposals[i];
        if (p.validate(document, offset, event))
          filtered.add(p);

      } else if (proposals[i] instanceof ICompletionProposalExtension) {

        ICompletionProposalExtension p= (ICompletionProposalExtension) proposals[i];
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.