org.eclipse.gmt.umlx.ecore
Class DependantAdapter<M extends org.eclipse.emf.common.notify.Notifier>
java.lang.Object
org.eclipse.gmt.umlx.ecore.AbstractAdapter
org.eclipse.gmt.umlx.ecore.ModelChangeAdapter
org.eclipse.gmt.umlx.ecore.DependantAdapter<M>
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Adapter, IModelChangeListener
public class DependantAdapter<M extends org.eclipse.emf.common.notify.Notifier>
- extends ModelChangeAdapter
- implements IModelChangeListener
DependantAdapter maintains a list of models that reference a particular
model and should be deleted along with it.
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
Method Summary |
void |
addDependant(org.eclipse.emf.ecore.EObject dependant)
|
static
<M1 extends org.eclipse.emf.common.notify.Notifier>
void |
|
addDependant(M1 model,
org.eclipse.emf.ecore.EObject dependantModel)
|
static
|
basicGetAdapter(M1 model)
|
static
|
getAdapter(M1 model)
|
java.util.List<org.eclipse.emf.ecore.EObject> |
getDependants()
|
static
<M1 extends org.eclipse.emf.common.notify.Notifier>
java.util.List<org.eclipse.emf.ecore.EObject> |
|
getDependants(M1 model)
|
boolean |
isAdapterForType(java.lang.Object type)
|
void |
modelChanged(org.eclipse.emf.common.notify.Notification msg)
|
void |
removeDependant(org.eclipse.emf.ecore.EObject dependant)
|
static
<M1 extends org.eclipse.emf.common.notify.Notifier>
void |
|
removeDependant(M1 model,
org.eclipse.emf.ecore.EObject dependant)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
addDependant
public static <M1 extends org.eclipse.emf.common.notify.Notifier> void addDependant(M1 model,
org.eclipse.emf.ecore.EObject dependantModel)
basicGetAdapter
public static <M1 extends org.eclipse.emf.common.notify.Notifier> DependantAdapter<M1> basicGetAdapter(M1 model)
getAdapter
public static <M1 extends org.eclipse.emf.common.notify.Notifier> DependantAdapter<M1> getAdapter(M1 model)
getDependants
public static <M1 extends org.eclipse.emf.common.notify.Notifier> java.util.List<org.eclipse.emf.ecore.EObject> getDependants(M1 model)
removeDependant
public static <M1 extends org.eclipse.emf.common.notify.Notifier> void removeDependant(M1 model,
org.eclipse.emf.ecore.EObject dependant)
addDependant
public void addDependant(org.eclipse.emf.ecore.EObject dependant)
getDependants
public java.util.List<org.eclipse.emf.ecore.EObject> getDependants()
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Specified by:
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
modelChanged
public void modelChanged(org.eclipse.emf.common.notify.Notification msg)
- Specified by:
modelChanged
in interface IModelChangeListener
removeDependant
public void removeDependant(org.eclipse.emf.ecore.EObject dependant)
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractAdapter