use of org.eclipse.core.commands.ExecutionException in project yamcs-studio by yamcs.
the class SwitchProcessorCompoundContributionItem method updateSelection.
private void updateSelection() {
IWorkbench workbench = PlatformUI.getWorkbench();
ICommandService commandService = (ICommandService) workbench.getService(ICommandService.class);
Command command = commandService.getCommand(SWITCH_PROCESSOR_COMMAND);
try {
ProcessorInfo currentProcessor = ManagementCatalogue.getInstance().getCurrentProcessorInfo();
HandlerUtil.updateRadioState(command, currentProcessor.getName());
} catch (ExecutionException e) {
log.log(Level.SEVERE, "Could not update radio state", e);
}
}
Aggregations