Bug 40780 [plan item] Improve context views
Declaration View and Javadoc View should compute their contents in background Both should provide a context menu containing at least Copy and F3 (where available).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/JavadocView.java
/*
	 * @see AbstractInfoView#isUpdatingIfSameInput() 
	 */
	protected boolean isIngoringEqualInput() {
		return false;
	}
	/*
	 * @see AbstractInfoView#findSelectedJavaElement(IWorkbenchPart) 
	 */
	protected IJavaElement findSelectedJavaElement(IWorkbenchPart part) {
		Object element;
		try {
			IStructuredSelection sel= SelectionConverter.getStructuredSelection(part);
		
			if (sel.isEmpty() && part instanceof JavaEditor) {
			
				JavaEditor editor= (JavaEditor)part;
				IDocument document= editor.getDocumentProvider().getDocument(editor.getEditorInput());
				if (document == null)
					return null;
				
				ITypedRegion typedRegion= document.getPartition(((ITextSelection)editor.getSelectionProvider().getSelection()).getOffset());
				if (IJavaPartitions.JAVA_DOC.equals(typedRegion.getType()))
					element= SelectionConverter.getElementAtOffset((JavaEditor)part);
				else
					return null;
			} else
				element= SelectionUtil.getSingleElement(sel);
		} catch (JavaModelException e) {
			return null;