@Override
 public void notifyChanged(Notification msg) {
   if (msg.getFeature().equals(ScaPackage.eINSTANCE.getComposite_Name())) {
     refresh();
   } else if (msg.getFeature().equals(ScaPackage.eINSTANCE.getComponent_Name())) {
     refresh();
   } else {
     refresh();
   }
   super.notifyChanged(msg);
 }
Example #2
0
 @Override
 public void notifyChanged(Notification notification) {
   final Map<URI, Resource> map = getURIResourceMap();
   if (map != null
       && notification.getFeatureID(Resource.class) == Resource.RESOURCE__URI
       && notification.getNotifier() instanceof Resource) {
     URI oldOne = (URI) notification.getOldValue();
     map.remove(oldOne);
     if (oldOne != null) {
       URI oldNormalized = getURIConverter().normalize(oldOne);
       if (!oldOne.equals(oldNormalized)) map.remove(oldNormalized);
     }
     Resource resource = (Resource) notification.getNotifier();
     registerURI(resource);
   }
   super.notifyChanged(notification);
 }
 public void notifyChanged(Notification msg) {
   super.notifyChanged(msg);
   notifyListeners(this, null);
 }
 /* (non-Javadoc)
  * @see org.eclipse.emf.common.notify.impl.AdapterImpl#notifyChanged(org.eclipse.emf.common.notify.Notification)
  */
 public void notifyChanged(Notification msg) {
   super.notifyChanged(msg);
 }