Bug 12261 Eclipse dies after SWT error
build 20020321 Adding a method to a java file I get an SWT error and a dialog pops up asking if I want to exit Eclipse because of an Internal error. The log file is attached. I could not isolate the problem but I do have a workspace that reproduces it. If you need the workspace and the steps to reproduce, just let me know and I can put somewhere else or send by email.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
return;   
		}
		int start= fFramePosition.getOffset() - region.getOffset();
		int end= fFramePosition.getLength() + start;	
		StyledText text= fViewer.getTextWidget();
		if (text != null && !text.isDisposed())
			text.setSelection(start, end);
	}
	private void updateCaret() {
		IRegion region= fViewer.getVisibleRegion();		
		if (!includes(region, fFramePosition)) {
		 	leave(UNINSTALL | COMMIT | DOCUMENT_CHANGED);
		 	return;   
		}
		int offset= fFramePosition.getOffset() + fCaretOffset - region.getOffset();
		
		if ((offset >= 0) && (offset <= region.getLength())) {
			StyledText text= fViewer.getTextWidget();
			if (text != null && !text.isDisposed())
				text.setCaretOffset(offset);
		}
	}
	/*
	 * @see ModifyListener#modifyText(ModifyEvent)
	 */	 
	public void modifyText(ModifyEvent e) {
		
		redrawRegion();
		updateCaret();
	}