public static int keyBindingDescriptionToKeyModifier(String keyBindingDescription){
  if (StringUtils.isBlank(keyBindingDescription)) {
    return 0;
  }
 else   if (keyBindingDescription.startsWith("ALT")) {
    return SWT.ALT;
  }
 else   if (keyBindingDescription.startsWith("CTRL")) {
    return SWT.CTRL;
  }
 else   if (keyBindingDescription.startsWith("CMD")) {
    return SWT.COMMAND;
  }
 else {
    return 0;
  }
}

public static int keyBindingDescriptionToKeyModifier ( String keyBindingDescription ) { if ( StringUtils . isBlank ( keyBindingDescription ) ) { return 0 ; } else if ( keyBindingDescription . startsWith ( "ALT" ) ) { return SWT . ALT ; } else if ( keyBindingDescription . startsWith ( "CTRL" ) ) { return SWT . CTRL ; } else if ( keyBindingDescription . startsWith ( "CMD" ) ) { return SWT . COMMAND ; } else { return 0 ; } }
returns the modifier for the specified key binding description .
