Bug 36519 [call hierarchy] ability to copy the view's content to the clipboard
we should add the ability to copy the view's content to the clipboard (it may be useful for people to take a pic of the callgraph and show to other people, for example)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyViewPart.java
}
        memento.putInteger(TAG_CALL_MODE, fCurrentCallMode);
        memento.putInteger(TAG_IMPLEMENTORS_MODE, fCurrentImplementorsMode);
        memento.putInteger(TAG_ORIENTATION, fCurrentOrientation);
        int[] weigths = fHierarchyLocationSplitter.getWeights();
        int ratio = (weigths[0] * 1000) / (weigths[0] + weigths[1]);
        memento.putInteger(TAG_RATIO, ratio);
    }
    /**
     * @return ISelectionChangedListener
     */
    public void selectionChanged(SelectionChangedEvent e) {
        if (e.getSelectionProvider() == fCallHierarchyViewer) {
            methodSelectionChanged(e.getSelection());
        }
    }
    /**
     * @param selection
     */
    private void methodSelectionChanged(ISelection selection) {
        if (selection instanceof IStructuredSelection) {
            Object selectedElement = ((IStructuredSelection) selection).getFirstElement();
            if (selectedElement instanceof MethodWrapper) {
                MethodWrapper methodWrapper = (MethodWrapper) selectedElement;
                revealElementInEditor(methodWrapper, fCallHierarchyViewer);
                updateLocationsView(methodWrapper);
            } else {
                updateLocationsView(null);
            }
        }