* @param parentNode the parent node.
* @param keepSuffixes whether the suffixes should be kept or not.
*/
void removeAllChildNodes(BasicNode parentNode, boolean keepSuffixes) {
for (int i = parentNode.getChildCount() - 1; i >= 0; i--) {
BasicNode child = (BasicNode)parentNode.getChildAt(i);
if ((child instanceof SuffixNode) && keepSuffixes) {
removeAllChildNodes(child, true);
child.setRefreshNeededOnExpansion(true);
}
else {
child.removeFromParent();
}
}
treeModel.nodeStructureChanged(parentNode);
}