|
Re: Display properties of an eObject (EMF) [message #687462 is a reply to message #687454] |
Tue, 14 June 2011 13:08 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
Renaud,
Comments below.
Renaud C wrote:
> Hello everybody,
>
> I built a treeviewer containing eObject elements (in fact, the
> treeviewer contains DiffElement elements, a class I created. This
> DiffElement contains an eObject).
By contains do you mean a containment reference?
>
> I would like to display properties (in the properties view) of the
> eObject (of the DiffElement) I select in the tree.
So the EObject itself isn't displayed in the tree but rather it's a
non-containment reference displayed in the properties view?
>
> Do my DiffElement have to implement IPropertySource?
> And how I have to proceed?
Have a look at
GenBaseItemProvider.GenItemPropertyDescriptor.createPropertyValueWrapper.
That's what makes properties of the GenModel in the Generator that are
references to the Ecore model have a little + to be able to expand the
properties of the Ecore model
>
> Thanks very much!
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02696 seconds