Bug 53869 [EditorMgmt] Blank outliner when opening/switching to editor
Build 20040303 - multiple windows No exact steps sorry. The problem is that sometimes when opening an editor (ctrl-shift-T) or switching to an existing one will bring it to front, but the outliner doesn't refresh properly. It remains blank. Usually, closing the editor and reopening will make the outline show up after a few attempts.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
return (key != null && preferences.getBoolean(key));
	}
	/**
	 * Computes and returns the source reference that includes the caret and
	 * serves as provider for the outline page selection and the editor range
	 * indication.
	 * 
	 * @return the computed source reference
	 * @since 3.0
	 */
	protected ISourceReference computeHighlightRangeSourceReference() {
		ISourceViewer sourceViewer= getSourceViewer();
		if (sourceViewer == null)
			return null;
			
		StyledText styledText= sourceViewer.getTextWidget();
		if (styledText == null)
			return null;
		
		int caret= 0;
		if (sourceViewer instanceof ITextViewerExtension5) {
			ITextViewerExtension5 extension= (ITextViewerExtension5)sourceViewer;
			caret= extension.widgetOffset2ModelOffset(styledText.getCaretOffset());
		} else {
			int offset= sourceViewer.getVisibleRegion().getOffset();
			caret= offset + styledText.getCaretOffset();
		}
		IJavaElement element= getElementAt(caret, false);
		
		if ( !(element instanceof ISourceReference))