for (int i= 0; i < actions.length; i++) if (actions[i].canOperateOn(selection)) javaSearchMM.add(actions[i]);
for (int i= 0; i < actions.length; i++) { actions[i].update(selection); if (actions[i].isEnabled()) javaSearchMM.add(actions[i]); }
	public IMenuManager getMenuManagerForGroup(IStructuredSelection selection) {		MenuManager javaSearchMM= new MenuManager(getName(), GROUP_ID); //$NON-NLS-1$		ElementSearchAction[] actions= getActions();		if (!selection.isEmpty()) {			for (int i= 0; i < actions.length; i++)			if (actions[i].canOperateOn(selection))				javaSearchMM.add(actions[i]);		}		return javaSearchMM;	}