/** * @return * @see org.eclipse.ui.menus.IMenuService#getCurrentState() */ @Override public IEvaluationContext getCurrentState() { return parentService.getCurrentState(); }
@Override public boolean isEnabled() { if (command != null) { command.getCommand().setEnabled(menuService.getCurrentState()); return command.getCommand().isEnabled(); } return false; }