// the eventType is CHANGE then it attribute on a path node
// changing. This was put in for the EGL group.
if (notifier instanceof Element) {
if (eventType == INodeNotifier.STRUCTURE_CHANGED || eventType == INodeNotifier.CONTENT_CHANGED || eventType == INodeNotifier.CHANGE) {
Element notifyingNode = (Element) notifier;
Translator map = findTranslator(notifyingNode.getNodeName(), false);
if (map != null)
updateMOFFeature(map, getNode(), getEObject());
}
}
}
else {
// Update everything on STRUCTURE_CHANGE or CONTENT_CHANGE.
// Other event types occur too often.
if (eventType == INodeNotifier.STRUCTURE_CHANGED || eventType == INodeNotifier.CONTENT_CHANGED) {
updateMOF();
}
// Update just the attribute that changed.
else if (eventType == INodeNotifier.CHANGE) {
Translator map = findTranslator(changedFeature.toString(), true);
if (map != null)
updateMOFFeature(map, getNode(), getEObject());
}
}
}