private void repairRepresentation() {  if (fActiveRegion == null) return;  ISourceViewer viewer= getSourceViewer(); if (viewer != null) { resetCursor(viewer);  int offset= fActiveRegion.getOffset(); int length= fActiveRegion.getLength();   if (viewer instanceof ITextViewerExtension2) ((ITextViewerExtension2) viewer).invalidateTextPresentation(offset, length); else viewer.invalidateTextPresentation();   if (viewer instanceof ITextViewerExtension3) { ITextViewerExtension3 extension= (ITextViewerExtension3) viewer; offset= extension.modelOffset2WidgetOffset(offset); } else { offset -= viewer.getVisibleRegion().getOffset(); }  StyledText text= viewer.getTextWidget(); text.redrawRange(offset, length, true); }  fActiveRegion= null;
private void repairRepresentation() { repairRepresentation(false);
		private void repairRepresentation() {						if (fActiveRegion == null)				return;						ISourceViewer viewer= getSourceViewer();			if (viewer != null) {				resetCursor(viewer);				int offset= fActiveRegion.getOffset();				int length= fActiveRegion.getLength();				// remove style				if (viewer instanceof ITextViewerExtension2)					((ITextViewerExtension2) viewer).invalidateTextPresentation(offset, length);				else					viewer.invalidateTextPresentation();				// remove underline								if (viewer instanceof ITextViewerExtension3) {					ITextViewerExtension3 extension= (ITextViewerExtension3) viewer;					offset= extension.modelOffset2WidgetOffset(offset);				} else {					offset -= viewer.getVisibleRegion().getOffset();				}								StyledText text= viewer.getTextWidget();				text.redrawRange(offset, length, true);								}			fActiveRegion= null;		}