public DeclarationsSearchGroup(JavaEditor editor) { Assert.isNotNull(editor); fEditor= editor; fGroupId= ITextEditorActionConstants.GROUP_FIND;
public DeclarationsSearchGroup(IWorkbenchSite site) { fSite= site; fGroupId= IContextMenuConstants.GROUP_SEARCH;  fFindDeclarationsAction= new FindDeclarationsAction(site); fFindDeclarationsInWorkingSetAction= new FindDeclarationsInWorkingSetAction(site); fFindDeclarationsInHierarchyAction= new FindDeclarationsInHierarchyAction(site);
	public DeclarationsSearchGroup(JavaEditor editor) {		Assert.isNotNull(editor);		fEditor= editor;		fGroupId= ITextEditorActionConstants.GROUP_FIND;		fFindDeclarationsAction= new FindDeclarationsAction(fEditor);		fFindDeclarationsAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_WORKSPACE);		fEditor.setAction("SearchDeclarationsInWorkspace", fFindDeclarationsAction); //$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$	}