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();