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
private StyledText fStyledText;
		/**
		 * Creates a new selection provider.
		 * 
		 * @param styledText	the styled text widget
		 */
		public SelectionProvider(StyledText styledText) {
			Assert.isNotNull(styledText);
			fStyledText= styledText;
			
			fStyledText.addSelectionListener(new SelectionAdapter() {
				public void widgetSelected(SelectionEvent e) {
					fireSelectionChanged();
				}
			});
		}
		
		/**
		 * Sends a selection changed event to all listeners.
		 */
		public void fireSelectionChanged() {
			ISelection selection= getSelection();
			SelectionChangedEvent event= new SelectionChangedEvent(this, selection);
			Object[] selectionChangedListeners= fListeners.getListeners();
			for (int i= 0; i < selectionChangedListeners.length; i++)
				((ISelectionChangedListener)selectionChangedListeners[i]).selectionChanged(event);
		}
		/*
		 * @see org.eclipse.jface.viewers.ISelectionProvider#addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener)