Bug 36981 call hierarchy: Search scope should be persisted
Search scope should be persisted when the platform shuts down or when the view is closed and reopened.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/SearchScopeActionGroup.java
* @return IResource[]
         */
        private IJavaElement[] getJavaElements(IAdaptable[] adaptables) {
            Collection result = new ArrayList();
            for (int i = 0; i < adaptables.length; i++) {
                IJavaElement element = (IJavaElement) adaptables[i].getAdapter(IJavaElement.class);
                if (element != null) {
                    result.add(element);
                }
            }
            return (IJavaElement[]) result.toArray(new IJavaElement[result.size()]);
        }
    }
    private class SearchScopeWorkspaceAction extends SearchScopeAction {
        public SearchScopeWorkspaceAction() {
            super(CallHierarchyMessages.getString("SearchScopeActionGroup.workspace.text")); 
            setToolTipText(CallHierarchyMessages.getString("SearchScopeActionGroup.workspace.tooltip")); 
            WorkbenchHelp.setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_SEARCH_SCOPE_ACTION);
        }
        public IJavaSearchScope getSearchScope() {
            return SearchEngine.createWorkspaceScope();
        }
    }
    private class SelectWorkingSetAction extends Action {
        public SelectWorkingSetAction() {
            super(CallHierarchyMessages.getString("SearchScopeActionGroup.workingset.select.text")); 
            setToolTipText(CallHierarchyMessages.getString("SearchScopeActionGroup.workingset.select.tooltip")); 
            WorkbenchHelp.setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_SEARCH_SCOPE_ACTION);
        }
        /* (non-Javadoc)