fFindDeclarationsAction= new FindDeclarationsAction(fEditor); fFindDeclarationsAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_WORKSPACE); fEditor.setAction("SearchDeclarationsInWorkspace", fFindDeclarationsAction);  fFindDeclarationsInProjectsAction= new FindDeclarationsInProjectsAction(fEditor); fFindDeclarationsAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_PROJECTS); fEditor.setAction("SearchDeclarationsInProjects", fFindDeclarationsInProjectsAction);  fFindDeclarationsInHierarchyAction= new FindDeclarationsInHierarchyAction(fEditor); fFindDeclarationsInHierarchyAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_HIERARCHY); fEditor.setAction("SearchDeclarationsInHierarchy", fFindDeclarationsInHierarchyAction);  fFindDeclarationsInWorkingSetAction= new FindDeclarationsInWorkingSetAction(fEditor); fFindDeclarationsInWorkingSetAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_WORKING_SET); fEditor.setAction("SearchDeclarationsInWorkingSet", fFindDeclarationsInWorkingSetAction);
ISelectionProvider provider= fSite.getSelectionProvider(); ISelection selection= provider.getSelection(); registerAction(fFindDeclarationsAction, provider, selection); registerAction(fFindDeclarationsInProjectAction, provider, selection); registerAction(fFindDeclarationsInHierarchyAction, provider, selection); registerAction(fFindDeclarationsInWorkingSetAction, provider, selection);
	public DeclarationsSearchGroup(JavaEditor editor) {		Assert.isNotNull(editor);		fEditor= editor;		fSite= fEditor.getSite();		fGroupId= ITextEditorActionConstants.GROUP_FIND;		fFindDeclarationsAction= new FindDeclarationsAction(fEditor);		fFindDeclarationsAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_WORKSPACE);		fEditor.setAction("SearchDeclarationsInWorkspace", fFindDeclarationsAction); //$NON-NLS-1$		fFindDeclarationsInProjectsAction= new FindDeclarationsInProjectsAction(fEditor);		fFindDeclarationsAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_PROJECTS);		fEditor.setAction("SearchDeclarationsInProjects", fFindDeclarationsInProjectsAction); //$NON-NLS-1$		fFindDeclarationsInHierarchyAction= new FindDeclarationsInHierarchyAction(fEditor);		fFindDeclarationsInHierarchyAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_HIERARCHY);		fEditor.setAction("SearchDeclarationsInHierarchy", fFindDeclarationsInHierarchyAction); //$NON-NLS-1$		fFindDeclarationsInWorkingSetAction= new FindDeclarationsInWorkingSetAction(fEditor);		fFindDeclarationsInWorkingSetAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_WORKING_SET);		fEditor.setAction("SearchDeclarationsInWorkingSet", fFindDeclarationsInWorkingSetAction); //$NON-NLS-1$	}