hasDeletes = false;
classOps.clear();
/* sync status with data object */
/* arrays are copied to ensure data object consistency is preserved */
JabaModel data = ew.getData();
synchronized (data) {
classes = data.getClasses();
isLd = data.isLd();
classNames = ArrayUtils.copy(data.getClassNames());
classTypes = ArrayUtils.copy(data.getClassTypes());
classData = ArrayUtils.copy(data.getClassData());
//NEW
//@author Stefano Omini
if (isLd) {
//if load dependent is no more supported after class changes
//remove all load dependent stations
if (!(data.isClosed() && !data.isMultiClass())) {
JOptionPane
.showMessageDialog(
this,
"<html><center>jMVA allows Load Dependent stations only for single class closed model. <br> Load Dependent stations will be replaced with Load Independent stations.</center></html>",
"Warning", JOptionPane.WARNING_MESSAGE);
data.removeLD();
isLd = false;
}
}
//end NEW
}