1 17 package org.eclipse.emf.common.notify.impl; 18 19 20 import org.eclipse.emf.common.notify.Adapter; 21 import org.eclipse.emf.common.notify.Notification; 22 import org.eclipse.emf.common.notify.Notifier; 23 24 25 26 29 public class AdapterImpl implements Adapter.Internal 30 { 31 34 protected Notifier target = null; 35 36 39 public AdapterImpl() 40 { 41 } 42 43 48 public boolean isAdapterForType(Object type) 49 { 50 return false; 51 } 52 53 56 public void notifyChanged(Notification msg) 57 { 58 } 59 60 63 public Notifier getTarget() 64 { 65 return target; 66 } 67 68 71 public void setTarget(Notifier newTarget) 72 { 73 target = newTarget; 74 } 75 76 79 public void unsetTarget(Notifier oldTarget) 80 { 81 if (target == oldTarget) 82 { 83 setTarget(null); 84 } 85 } 86 } 87 | Popular Tags |