/* (non-Javadoc)
* @see fr.soleil.salsa.client.controller.impl.IHooksController#notifyNewCommand(int)
*/
public void notifyNewCommand(int id) {
IHook h = hooks.get(id);
if (h.getCommandsList() == null) {
h.setCommandsList(new ListModel<IHookCommand, HookModel>(new ArrayList<IHookCommand>(), ((HookModel) h),
"commandsList"));
}
List<IHookCommand> commands = h.getCommandsList();
commands.add(new HookCommandModel());
}