if (_csConfig instanceof de.innovationgate.wga.common.beans.csconfig.v2.CSConfig) {
de.innovationgate.wga.common.beans.csconfig.v2.CSConfig v2 = (de.innovationgate.wga.common.beans.csconfig.v2.CSConfig) _csConfig;
Iterator<Shortcut> shortcuts = v2.getShortcuts().iterator();
while (shortcuts.hasNext()) {
Shortcut shortcut = shortcuts.next();
if (WGUtils.isEmpty(shortcut.getShortcut())) {
errors.add(new ValidationError("A shortcut has no name", new String[] { "shortcuts" }));
}
else if (WGUtils.isEmpty(shortcut.getReference())) {
errors.add(new ValidationError("The shortcut '" + shortcut.getShortcut() + "' has no reference", new String[] { "shortcuts" }));
}
else if (shortcut.getType() == Shortcut.TYPE_TMLSCRIPT_GLOBAL) {
if (!Character.isUpperCase(shortcut.getShortcut().charAt(0))) {
errors.add(new ValidationError("The TMLScript global shortcut '" + shortcut.getShortcut() + "' must start with an uppercase letter.", new String[] { "shortcuts" }));
}
}
}
}