// Being paranoid, we will still scan through all.
if (nextNode != node && nextNode.getDataMaps().contains(map)) {
nextNode.removeDataMap(map.getName());
// announce DataNode change
eventController.fireDataNodeEvent(new DataNodeEvent(this, nextNode));
hasChanges = true;
}
}
// link to a selected node
if (node != null) {
node.addDataMap(map);
hasChanges = true;
// announce DataNode change
eventController.fireDataNodeEvent(new DataNodeEvent(this, node));
}
if (hasChanges) {
// TODO: maybe reindexing is an overkill in the modeler?
eventController.getCurrentDataDomain().reindexNodes();