Bug 22380 "No Source" class file editor does not fetch keyboard focus
Build N20020813 Test Case: 1. From the package explorer open a class from a JAR without attached source 2. Activate the editor 3. Select something in another view (note: selection is blue) 4. Activate the class file editor by clicking on the tab ==> selection in other view remains blue but should be gray. Suggest to set the keyboard focus to the "Attach Source..." button
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java
});
				}
			}						
		}
	}
	
	/*
	 * @see JavaEditor#createJavaSourceViewer(Composite, IVerticalRuler, int)
	 */
	protected ISourceViewer createJavaSourceViewer(Composite parent, IVerticalRuler ruler, int styles) {
		return new SourceViewer(parent, ruler, styles) {
			public boolean requestWidgetToken(IWidgetTokenKeeper requester) {
				if (WorkbenchHelp.isContextHelpDisplayed())
					return false;
				return super.requestWidgetToken(requester);
			}
		};	
	}
	
	/*
	 * @see org.eclipse.ui.IWorkbenchPart#dispose()
	 */
	public void dispose() {
		
		IDocumentProvider documentProvider= getDocumentProvider();
		if (documentProvider instanceof ClassFileDocumentProvider)
			((ClassFileDocumentProvider) documentProvider).removeInputChangeListener(this);
		super.dispose();
	}
}