oMsg.append(", ");
else
oMsg.append("\nOverride being removed: \n");
oMsg.append(namesToRemove[i]);
} else
throw new InternalErrorCDE("invalid state");
}
if (giveWarningMsg
&& Window.CANCEL == Utility.popOkCancel("Confirm Remove",
"Please confirm remove, or Cancel.\n" + msgGroup.toString() + msg.toString()
+ oMsg.toString(), MessageDialog.WARNING))
return false;
// loop thru all things being removed, and remove them
for (int i = 0; i < itemsToRemove.length; i++) {
if (isGroup[i]) {
removeGroup(itemsToRemove[i], namesToRemove[i]);
} else if (isParameter(itemsToRemove[i])) { // just a plain parameter being
// removed
removeParameter(itemsToRemove[i], namesToRemove[i]);
} else if (isOverride(itemsToRemove[i])) {
TreeItem parentItem = itemsToRemove[i].getParentItem();
ConfigurationParameter cp = getCorrespondingModelParm(parentItem);
cp.setOverrides(removeOverride(cp, getItemIndex(parentItem, itemsToRemove[i])));
itemsToRemove[i].dispose();
if (cp.getOverrides().length == 0) {
removeParameter(parentItem, getName(parentItem));
}
} else
throw new InternalErrorCDE("Invalid state");
}
return true;
}