}
MBindingTable bt = (MBindingTable) parentObj;
final Context bindingContext = contextManager.getContext(bt
.getBindingContext().getElementId());
BindingTable table = bindingTables.getTable(bindingContext.getId());
if (table == null) {
logger.error("Trying to create \'" + binding //$NON-NLS-1$
+ "\' without binding table " + bindingContext.getId());//$NON-NLS-1$
return;
}
Binding keyBinding = createBinding(bindingContext,
binding.getCommand(), binding.getParameters(),
binding.getKeySequence(), binding);
if (keyBinding != null) {
if (add) {
table.addBinding(keyBinding);
} else {
table.removeBinding(keyBinding);
}
}
}