public void commandListIsConnected(final Vector<ICommand> acommandList) {
// 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;
}
}
}
// System.out.println("tmpCommandList.size() = "+
// tmpCommandList.size());
// System.out.println("commandNameList.length = "+
// commandNameList.length);
// System.out.println("m_KOCommand.size = "+ m_KOCommand.size());
if (tmpCommandList.size() + m_KOCommand.size() == commandNameList.length) {
BindingTango.removeConnectionListener(this);
super.setModel(tmpCommandList);
repaint();
}
}