// System.out.println("commandIsConnected="+ command.getName());
// Check if it s the good attribute list
final Enumeration<ICommand> tmpEnumeration = acommandList.elements();
final CommandList tmpCommandList = new CommandList();
ICommand tmpICommand = null;
while (tmpEnumeration.hasMoreElements()) {
tmpICommand = tmpEnumeration.nextElement();
for (final String element : commandNameList) {
if (tmpICommand.getName().equalsIgnoreCase(element.trim())) {
tmpCommandList.add(tmpICommand);
BindingTango.addCommandListener(tmpICommand.getName(), this);
tmpICommand.addErrorListener(this);
break;
}
}
}