private void endCompoundChange(ITextViewer viewer) {
if (viewer instanceof ITextViewerExtension) {
ITextViewerExtension extension = (ITextViewerExtension) viewer;
IRewriteTarget rewriteTarget = extension.getRewriteTarget();
rewriteTarget.beginCompoundChange();
}
}
public void apply(ITextViewer viewer, char trigger, int stateMask, int offset) {
IDocument document = viewer.getDocument();