Package org.eclipse.wst.common.internal.emf.resource

Examples of org.eclipse.wst.common.internal.emf.resource.Translator


      // 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());
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.common.internal.emf.resource.Translator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.