if (num == 0)
new FlashMsg(ZoeosFrame.getInstance(), 2500, 500, FlashMsg.colorWarning, "NO DEVICES FOUND DURING HUNT");
else {
List unlicensed = new ArrayList();
for (Iterator i = replies.iterator(); i.hasNext();) {
final SysexTransactionRecord str = (SysexTransactionRecord) i.next();
ZExternalDevice d = m.tryIdentify(str);
if (d != null) {
ZExternalDevice dup = getDuplicate(d.getDeviceIdentityMessage());
if (dup == null) {
if (!isDemo() && d instanceof LicensedEntity && !checkLicensed((LicensedEntity) d)) {
unlicensed.add(d);
continue;
} else if (isDemo() && /*SecurityPreferences.expired()*/false) {
unlicensed.add(d);
continue;
}
devices.put(d, d.getDeviceIdentityMessage());
//serializeDeviceMarshalling.setSelected(sun.getBoolean(Zoeos.PREF_serializeDeviceMarshalling, true));
if (!ZoeosPreferences.ZPREF_stopHuntAtPending.getValue())
//if (startBarrier == false)
startDevice(d);
else {
Impl_ZDeviceManager.this.firePendingListChanged();
Impl_ZDeviceManager.this.fireStoppedListChanged();
Impl_ZDeviceManager.this.fireStartedListChanged();
ZoeosFrame.getInstance().showDeviceManager();
}
} else {
duped++;
duplicateDevices.put(d, dup);
Impl_ZDeviceManager.this.fireDuplicateListChanged();
System.out.println(Zoeos.getZoeosTime() + ": " + "DUPLICATE MIDI DEVICE: " + str.getReply());
}
} else {
unidentifiedMessages.add(str.getReply());
Impl_ZDeviceManager.this.fireUnidentifiedListChanged();
System.out.println(Zoeos.getZoeosTime() + ": " + "UNRESOLVED MIDI DEVICE: " + str.getReply());
}
}
if (unlicensed.size() > 0) {
UserMessaging.showError(unlicensed.size() + (unlicensed.size() == 1 ? " device was" : " devices were") + " not marshalled due to insufficient licensing");
ZUtilities.zDisposeCollection(unlicensed);