registerAction(fOccurrencesInFileAction, provider, selection, specialSelectionProvider); registerAction(fExceptionOccurrencesAction, provider, selection, specialSelectionProvider); registerAction(fFindImplementorOccurrencesAction, provider, selection, specialSelectionProvider); registerAction(fBreakContinueTargetOccurrencesAction, provider, selection, specialSelectionProvider); registerAction(fMethodExitOccurrencesAction, provider, selection, specialSelectionProvider);
registerAction(fOccurrencesInFileAction, provider, selection, specialSelectionProvider); registerAction(fExceptionOccurrencesAction, provider, selection, specialSelectionProvider); registerAction(fFindImplementorOccurrencesAction, provider, selection, specialSelectionProvider); registerAction(fBreakContinueTargetOccurrencesAction, provider, selection, specialSelectionProvider); registerAction(fMethodExitOccurrencesAction, provider, selection, specialSelectionProvider);
/** * Creates a new <code>ImplementorsSearchGroup</code>. The group * requires that the selection provided by the site's selection provider * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>. * * @param site the view part that owns this action group */ public OccurrencesSearchGroup(IWorkbenchSite site) { fSite= site; fGroupId= IContextMenuConstants.GROUP_SEARCH; fOccurrencesInFileAction= new FindOccurrencesInFileAction(site); fOccurrencesInFileAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_OCCURRENCES_IN_FILE); // Need to reset the label fOccurrencesInFileAction.setText(SearchMessages.Search_FindOccurrencesInFile_shortLabel); fExceptionOccurrencesAction= new FindExceptionOccurrencesAction(site); fExceptionOccurrencesAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_EXCEPTION_OCCURRENCES_IN_FILE); fFindImplementorOccurrencesAction= new FindImplementOccurrencesAction(site); fFindImplementorOccurrencesAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_IMPLEMENT_OCCURRENCES_IN_FILE); // register the actions as selection listeners ISelectionProvider provider= fSite.getSelectionProvider(); ISelection selection= provider.getSelection(); registerAction(fOccurrencesInFileAction, provider, selection); registerAction(fExceptionOccurrencesAction, provider, selection); registerAction(fFindImplementorOccurrencesAction, provider, selection); }