/**
* This sets the composed adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
/**
* This sets the composed adapter factory that contains this factory.
*/
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
this.parentAdapterFactory = parentAdapterFactory;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
/**
* Returns whether this factory is applicable for the type of the object.
* @return whether this factory is applicable for the type of the object.
*/
@Override public boolean isFactoryForType(Object type) {
return [[#variable149ab640]]|| [[#variable149ab5a0]]. [[#variable149ab540]](type);
}
/**
* This implementation substitutes the factory itself as the key for the adapter.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
/**
* This implementation substitutes the factory itself as the key for the adapter.
*/
@Override public Adapter adapt(Notifier notifier, Object type) {
return super.adapt(notifier, this );
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
/**
*/
@Override public Object adapt(Object object, Object type) {
if (isFactoryForType(type)) {
Object adapter = super.adapt(object, type);
if ( !(type instanceof Class) || (((Class<? >) type).isInstance(adapter))) {
return adapter;
}
}
return null;
}
/**
* This adds a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
/**
* This adds a listener.
*/
public void addListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.addListener(notifyChangedListener);
}
/**
* This removes a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
/**
* This removes a listener.
*/
public void removeListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.removeListener(notifyChangedListener);
}
/**
* This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
/**
* This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
*/
public void fireNotifyChanged(Notification notification) {
changeNotifier.fireNotifyChanged(notification);
if (parentAdapterFactory != null) {
parentAdapterFactory.fireNotifyChanged(notification);
}
}
|