AnnotationCheckComposite composite = (AnnotationCheckComposite) acView.getComposite();
composite.setAnnotationMode(typeString);
String[] split = typeString.split("[.]");
mode = split[split.length - 1];
ICommandService commandService = (ICommandService) window.getService(ICommandService.class);
if (commandService != null) {
commandService.refreshElements("org.apache.uima.ruta.check.mode", null);
}
} catch (PartInitException e) {
RutaAddonsPlugin.error(e);
return Status.CANCEL_STATUS;
}