Исправление клонирования пакетов ДВМ

This commit is contained in:
2024-03-22 23:08:51 +03:00
parent b6b6e2e642
commit 9f1777431c
13 changed files with 250 additions and 169 deletions

View File

@@ -280,4 +280,18 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
}
return true;
}
//--
public Vector<D> getCheckedOrCurrent() {
Vector<D> res = new Vector<>();
if (getCheckedCount() > 0)
res = getCheckedItems();
else {
if (!CurrentName().equals(Current.Undefined)) {
if (getCurrent() != null) {
res.add(getCurrent());
}
}
}
return res;
}
}