Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » (no subject)
(no subject) [message #687454] Tue, 14 June 2011 07:32 Go to next message
Renaud C is currently offline Renaud CFriend
Messages: 19
Registered: May 2011
Junior Member
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).

I would like to display properties (in the properties view) of the eObject (of the DiffElement) I select in the tree.

Do my DiffElement have to implement IPropertySource?
And how I have to proceed?

Thanks very much!
Re: Display properties of an eObject (EMF) [message #687462 is a reply to message #687454] Tue, 14 June 2011 13:08 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30470
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!
Previous Topic:model myself an EBooleanObject
Next Topic:dependencies between 2 packages
Goto Forum:
  


Current Time: Mon Sep 23 17:22:56 GMT 2019

Powered by FUDForum. Page generated in 0.01854 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top