| 190 | } |
| 191 | |
| 192 | void Command::FireCommandChanged(const CommandEvent::ConstPointer commandEvent) |
| 193 | { |
| 194 | if (!commandEvent) |
| 195 | { |
| 196 | throw ctkInvalidArgumentException("Cannot fire a null event"); |
| 197 | } |
| 198 | |
| 199 | try |
| 200 | { |
| 201 | commandEvents.commandChanged(commandEvent); |
| 202 | } |
| 203 | catch (...) |
| 204 | { |
| 205 | //TODO log exceptions? |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | void Command::FireNotDefined(const NotDefinedException* e) |
| 210 | { |
no outgoing calls
no test coverage detected