protected void addCommandExecuteListener(String commandName, final Widget targetButton) {
final ICommand commandObj = loader.getCommand(commandName);
if (commandObj != null) {
targetButton.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
commandObj.execute(targetButton);
}
});
}
}