fFindReferencesInHierarchyAction= new FindReferencesInHierarchyAction(fEditor); fFindReferencesInHierarchyAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_HIERARCHY); fEditor.setAction("SearchReferencesInHierarchy", fFindReferencesInHierarchyAction);  fFindReferencesInWorkingSetAction= new FindReferencesInWorkingSetAction(fEditor); fFindReferencesInWorkingSetAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_WORKING_SET); fEditor.setAction("SearchReferencesInWorkingSet", fFindReferencesInWorkingSetAction);
ISelectionProvider provider= fSite.getSelectionProvider(); ISelection selection= provider.getSelection(); registerAction(fFindReferencesAction, provider, selection); registerAction(fFindReferencesInHierarchyAction, provider, selection); registerAction(fFindReferencesInWorkingSetAction, provider, selection);
	public ReferencesSearchGroup(JavaEditor editor) {		Assert.isNotNull(editor);		fEditor= editor;		fGroupId= ITextEditorActionConstants.GROUP_FIND;		fFindReferencesAction= new FindReferencesAction(editor);		fFindReferencesAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_WORKSPACE);		fEditor.setAction("SearchReferencesInWorkspace", fFindReferencesAction); //$NON-NLS-1$		fFindReferencesInHierarchyAction= new FindReferencesInHierarchyAction(fEditor);		fFindReferencesInHierarchyAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_HIERARCHY);		fEditor.setAction("SearchReferencesInHierarchy", fFindReferencesInHierarchyAction); //$NON-NLS-1$				fFindReferencesInWorkingSetAction= new FindReferencesInWorkingSetAction(fEditor);		fFindReferencesInWorkingSetAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_WORKING_SET);		fEditor.setAction("SearchReferencesInWorkingSet", fFindReferencesInWorkingSetAction); //$NON-NLS-1$	}