fileChangesSinceSave = 0;
}
//node statistics
final NodeModel rootNode = map.getRootNode();
final int nodeMainBranches = rootNode.getChildCount();
final ICondition trueCondition = new ICondition() {
public boolean checkNode(NodeModel node) {
return true;
}
};
final ICondition isLeafCondition = new ICondition() {
public boolean checkNode(NodeModel node) {
return node.isLeaf();
}
};
final int nodeTotalNodeCount = getNodeCount(rootNode, trueCondition);
final int nodeTotalLeafCount = getNodeCount(rootNode, isLeafCondition);
final Filter filter = map.getFilter();
final int nodeTotalFiltered;
if(filter != null && filter.getCondition() != null){
final ICondition matchesFilterCondition = new ICondition() {
public boolean checkNode(NodeModel node) {
return filter.matches(node);
}
};
nodeTotalFiltered = getNodeCount(rootNode, matchesFilterCondition);