iface = ifaceWidget.getStringValue();
addr = addrWidget.getStringValue();
} else if (SERIAL_TYPE.equals(type)) {
serial = serialWidget.getStringValue();
} else if (UCAST_TYPE.equals(type)) {
final UcastLink ucastLink1 = (UcastLink) ucastLink1Widget.getValue();
final UcastLink ucastLink2 = (UcastLink) ucastLink2Widget.getValue();
if (ucastLink1 == null || ucastLink2 == null || ucastLink1.getHost() == ucastLink2.getHost()) {
application.invokeLater(new Runnable() {
@Override
public void run() {
addAddressButton.setEnabled(false);
}
});
return;
}
iface = ucastLink1.getInterface();
addr = ucastLink2.getIp();
}
for (final CastAddress c : castAddresses) {
if (c.equals(type.getValueForConfig(), iface, addr, serial)) {
application.invokeLater(new Runnable() {