fGroupProjectAction.setChecked(fCurrentGrouping == LevelTreeContentProvider.LEVEL_PROJECT); fGroupPackageAction.setChecked(fCurrentGrouping == LevelTreeContentProvider.LEVEL_PACKAGE); fGroupFileAction.setChecked(fCurrentGrouping == LevelTreeContentProvider.LEVEL_FILE); fGroupTypeAction.setChecked(fCurrentGrouping == LevelTreeContentProvider.LEVEL_TYPE);  mgr.appendToGroup(IContextMenuConstants.GROUP_VIEWER_SETUP, groupMenu);
updateGroupingActions();
	private void addGroupActions(IMenuManager mgr) {		if (isFlatLayout())			return;		MenuManager groupMenu= new MenuManager(SearchMessages.getString("JavaSearchResultPage.groupyby_label")); //$NON-NLS-1$		groupMenu.add(fGroupProjectAction);		groupMenu.add(fGroupPackageAction);		groupMenu.add(fGroupFileAction);		groupMenu.add(fGroupTypeAction);				fGroupProjectAction.setChecked(fCurrentGrouping == LevelTreeContentProvider.LEVEL_PROJECT);		fGroupPackageAction.setChecked(fCurrentGrouping == LevelTreeContentProvider.LEVEL_PACKAGE);		fGroupFileAction.setChecked(fCurrentGrouping == LevelTreeContentProvider.LEVEL_FILE);		fGroupTypeAction.setChecked(fCurrentGrouping == LevelTreeContentProvider.LEVEL_TYPE);				mgr.appendToGroup(IContextMenuConstants.GROUP_VIEWER_SETUP, groupMenu);	}