[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[gef-dev] AbstractEditPart and IAdaptable
|
Title: AbstractEditPart and IAdaptable
Hi,
Can you tell me why the method getAdapter in AbstractEditPart returns null instead of delegating to superclass? Because of this null, extending the edit parts using dynamic adapters is rather difficult.
public Object getAdapter(Class key)
{
if (IPropertySource.class == key) {
if (getModel() instanceof IPropertySource)
return getModel();
if (getModel() instanceof IAdaptable)
return ((IAdaptable)getModel()).getAdapter(key);
}
if (AccessibleEditPart.class == key)
return getAccessibleEditPart();
return null;
}
Kind regards,
Krzysztof
**********************************************************************
The information in this e-mail and any attachment is confidential.
It is intended only for the named recipient(s). If you are not a
named recipient please notify the sender immediately and do not
disclose the contents to another person or take copies. Although
Axxia Systems has taken every reasonable precaution to ensure
that any attachment to this e-mail has been checked for viruses,
it is strongly recommended that you carry out your own virus
check before opening any attachment, as we cannot accept
liability for any damage sustained as a result of software virus
infection. Axxia Systems reserves the right and senders of
messages shall be taken to consent to the monitoring and
recording of e-mails addressed to axxia.com.
**********************************************************************