[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [gef-dev] AbstractEditPart and IAdaptable
|
I'm not sure what you're talking about.
AbstractEditPart's superclass is Object.
Use the newsgroup for such questions,
not the mailing list.
Pratik Shah
Graphical Editing Framework (GEF)
http://www.eclipse.org/gef
Ph: (919) 254-5043
Fx: (919) 254-8169
"Krzysztof Ogrodnik"
<OgrodnikK@xxxxxxxxx>
Sent by: gef-dev-bounces@xxxxxxxxxxx
09/29/2005 05:13 AM
Please respond to
GEF development |
|
To
| <gef-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| [gef-dev] 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.
**********************************************************************
_______________________________________________
gef-dev mailing list
gef-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/gef-dev