1 14 package org.eclipse.jdt.internal.ui.callhierarchy; 15 16 import org.eclipse.ui.PlatformUI; 17 18 import org.eclipse.jdt.core.search.IJavaSearchScope; 19 import org.eclipse.jdt.core.search.SearchEngine; 20 21 import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; 22 import org.eclipse.jdt.internal.ui.search.JavaSearchScopeFactory; 23 24 25 class SearchScopeWorkspaceAction extends SearchScopeAction { 26 public SearchScopeWorkspaceAction(SearchScopeActionGroup group) { 27 super(group, CallHierarchyMessages.SearchScopeActionGroup_workspace_text); 28 setToolTipText(CallHierarchyMessages.SearchScopeActionGroup_workspace_tooltip); 29 PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_SEARCH_SCOPE_ACTION); 30 } 31 32 public IJavaSearchScope getSearchScope() { 33 return SearchEngine.createWorkspaceScope(); 34 } 35 36 39 public int getSearchScopeType() { 40 return SearchScopeActionGroup.SEARCH_SCOPE_TYPE_WORKSPACE; 41 } 42 43 46 public String getFullDescription() { 47 JavaSearchScopeFactory factory= JavaSearchScopeFactory.getInstance(); 48 return factory.getWorkspaceScopeDescription(true); 49 } 50 } 51 | Popular Tags |