Package org.eclipse.jface.text.contentassist

Examples of org.eclipse.jface.text.contentassist.CompletionProposal.apply()


    fUpdateLengthOnValidate = updateReplacementLengthOnValidate;
  }

  public void apply(IDocument document) {
    CompletionProposal proposal = new CompletionProposal(getReplacementString(), getReplacementOffset(), getReplacementLength(), getCursorPosition(), getImage(), getDisplayString(), getContextInformation(), getAdditionalProposalInfo());
    proposal.apply(document);
  }

  /*
   * (non-Javadoc)
   *
 
View Full Code Here


  public void apply(IDocument document, char trigger, int offset) {
    CompletionProposal proposal = new CompletionProposal(getReplacementString(), getReplacementOffset(), getReplacementLength(), getCursorPosition(), getImage(), getDisplayString(), getContextInformation(), getAdditionalProposalInfo());
    // we currently don't do anything special for which character
    // selected the proposal, and where the cursor offset is
    // but we might in the future...
    proposal.apply(document);
    // we want to ContextInformationPresenter.updatePresentation() here
  }

  public void apply(ITextViewer viewer, char trigger, int stateMask, int offset) {
    IDocument document = viewer.getDocument();
View Full Code Here

    fUpdateLengthOnValidate = updateReplacementLengthOnValidate;
  }

  public void apply(IDocument document) {
    CompletionProposal proposal = new CompletionProposal(getReplacementString(), getReplacementOffset(), getReplacementLength(), getCursorPosition(), getImage(), getDisplayString(), getContextInformation(), getAdditionalProposalInfo());
    proposal.apply(document);
  }

  /*
   * (non-Javadoc)
   *
 
View Full Code Here

  public void apply(IDocument document, char trigger, int offset) {
    CompletionProposal proposal = new CompletionProposal(getReplacementString(), getReplacementOffset(), getReplacementLength(), getCursorPosition(), getImage(), getDisplayString(), getContextInformation(), getAdditionalProposalInfo());
    // we currently don't do anything special for which character
    // selected the proposal, and where the cursor offset is
    // but we might in the future...
    proposal.apply(document);
    // we want to ContextInformationPresenter.updatePresentation() here
  }

  public void apply(ITextViewer viewer, char trigger, int stateMask, int offset) {
    IDocument document = viewer.getDocument();
View Full Code Here

    CompletionProposal proposal = new CompletionProposal(
        getReplacementString(), getReplacementOffset(),
        getReplacementLength(), getCursorPosition() + 1,
        getImage(), getDisplayString(), getContextInformation(),
        getAdditionalProposalInfo());
    proposal.apply(document);
  }

  /*
   * (non-Javadoc)
   * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension#apply(org.eclipse.jface.text.IDocument,
View Full Code Here

    CompletionProposal proposal = new CompletionProposal(
        getReplacementString(), getReplacementOffset(),
        getReplacementLength(), getCursorPosition() + 1, getImage(),
        getDisplayString(), getContextInformation(),
        getAdditionalProposalInfo());
    proposal.apply(document);
  }

  @Override
  public void apply(ITextViewer viewer, char trigger, int stateMask,
      int offset) {
View Full Code Here

      CompletionProposal proposal = new CompletionProposal(
          getReplacementString(), getReplacementOffset() - 1,
          getReplacementLength(), getCursorPosition() + 1,
          getImage(), getDisplayString(), getContextInformation(),
          getAdditionalProposalInfo());
      proposal.apply(document);

    }
    else {
      CompletionProposal proposal = new CompletionProposal(
          getReplacementString() + "\"", getReplacementOffset(),
View Full Code Here

      CompletionProposal proposal = new CompletionProposal(
          getReplacementString() + "\"", getReplacementOffset(),
          getReplacementLength(), getCursorPosition() + 1,
          getImage(), getDisplayString(), getContextInformation(),
          getAdditionalProposalInfo());
      proposal.apply(document);

    }

  }
View Full Code Here

    CompletionProposal proposal = new CompletionProposal(
        getReplacementString() + "\"", getReplacementOffset(),
        getReplacementLength(), getCursorPosition() + 1, getImage(),
        getDisplayString(), getContextInformation(),
        getAdditionalProposalInfo());
    proposal.apply(document);
    // we want to ContextInformationPresenter.updatePresentation() here
  }

  public void apply(ITextViewer viewer, char trigger, int stateMask,
      int offset) {
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.