The solution implies that the command handler implements the IElementUpdater interface. Then the user interface element can be updated as follows:
public void updateElement(UIElement element, Map parameters)
{
element.setChecked(isSelected);
}
updateElement is called as part of the update UI, which can be called from the execution command of the handler like this:
ICommandService service = (ICommandService) HandlerUtil
.getActiveWorkbenchWindowChecked(event).getService(
ICommandService.class);
service.refreshElements(event.getCommand().getId(), null);
A lot more information here (see Radio Button Command and Update Checked Records Status )
source
share