public abstract class AbstractMetaModelManagerResourceAdapter<T extends org.eclipse.emf.ecore.resource.Resource> extends java.lang.Object implements MetaModelManagedAdapter
Modifier and Type | Field and Description |
---|---|
protected MetaModelManager |
metaModelManager |
protected T |
resource |
Constructor and Description |
---|
AbstractMetaModelManagerResourceAdapter(T resource,
MetaModelManager metaModelManager) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
static void |
disposeAll(org.eclipse.emf.ecore.resource.Resource resource) |
static AbstractMetaModelManagerResourceAdapter<?> |
findAdapter(org.eclipse.emf.ecore.resource.Resource resource) |
MetaModelManager |
getMetaModelManager() |
T |
getTarget() |
boolean |
isAdapterFor(MetaModelManager metaModelManager) |
boolean |
isAdapterForType(java.lang.Object type) |
void |
metaModelManagerDisposed(MetaModelManager metaModelManager)
Respond to disposal of the MetaModelManager by eliminating all further usage.
|
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification) |
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget) |
void |
unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget) |
@NonNull protected final T extends org.eclipse.emf.ecore.resource.Resource resource
@NonNull protected final MetaModelManager metaModelManager
public AbstractMetaModelManagerResourceAdapter(@NonNull T resource, @NonNull MetaModelManager metaModelManager)
public static void disposeAll(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
@Nullable public static AbstractMetaModelManagerResourceAdapter<?> findAdapter(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
public void dispose()
@NonNull public MetaModelManager getMetaModelManager()
public T getTarget()
getTarget
in interface org.eclipse.emf.common.notify.Adapter
public boolean isAdapterFor(@NonNull MetaModelManager metaModelManager)
isAdapterFor
in interface MetaModelManagedAdapter
public boolean isAdapterForType(java.lang.Object type)
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
public void metaModelManagerDisposed(@NonNull MetaModelManager metaModelManager)
MetaModelManagerListener
metaModelManagerDisposed
in interface MetaModelManagerListener
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
setTarget
in interface org.eclipse.emf.common.notify.Adapter
public void unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
unsetTarget
in interface org.eclipse.emf.common.notify.Adapter.Internal