IRegion selection= getSignedSelection(viewer); int startOffset= selection.getOffset(); int endOffset= startOffset + selection.getLength();
Point selection= viewer.getSelectedRange(); int startOffset= selection.x; int endOffset= startOffset + selection.y;
		public void remember() {			/* https://bugs.eclipse.org/bugs/show_bug.cgi?id=52257			 * This method may be called inside an asynchronous call posted			 * to the UI thread, so protect against intermediate disposal			 * of the editor.			 */			ISourceViewer viewer= getSourceViewer();			if (viewer != null) {				IRegion selection= getSignedSelection(viewer);				int startOffset= selection.getOffset();				int endOffset= startOffset + selection.getLength();				fStartOffset.setOffset(startOffset);				fEndOffset.setOffset(endOffset);			}		}