Collection<Label> labelCollection = labelMap.values();
Iterator<Label> labelIterator = labelCollection.iterator();
while (labelIterator.hasNext()) {
Label label = labelIterator.next();
label.removeKey(TangoDAOFactory.class.getName());
}
scanDeadTime.removeKey(TangoDAOFactory.class.getName());
if (scanServerName == null || scanServerName.isEmpty()) {
return;
}
scanServerLabel.setText(scanServerName);
labelMap.get(SCAN_STATE).setToolTipText(scanServerName);
Set<String> keySet = labelMap.keySet();
Iterator<String> keyIterator = keySet.iterator();
while (keyIterator.hasNext()) {
String key = keyIterator.next();
Label label = labelMap.get(key);
TangoKey tangoKey = new TangoKey();
tangoKey.registerAttribute(scanServerName, key);
label.addKey(TangoDAOFactory.class.getName(), tangoKey);
}
// Progress bar
TangoKey deadTimeKey = new TangoKey();
deadTimeKey.registerAttribute(scanServerName, DEAD_TIME_PERCENT);