|
Re: EMF data binding [message #549111 is a reply to message #549092] |
Sat, 24 July 2010 16:07 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Pete,
This question doesn't sound EMF specific. The generated editor provides
a complete example for displaying trees and for updating views based on
the selection.
Pete wrote:
> Hi,
> I am relatively new to Eclipse development. I am able to create an EMF
> model and use it in my simple RCP application,which displays my model
> in a treeview. What I am having trouble understanding is how to create
> a view that will display the selected model item from my treeview. I
> have tried some code I found on the net that injects a method similar
> to this
>
> @Inject
> void setSelection(@Optional
> @Named(IServiceConstants.ACTIVE_SELECTION) Contact contact) {...}
>
> However, I get an error relating to the
> IServiceConstants.ACTIVE_SELECTION not being able to be resolved as a
> variable and the annotations seem to have some kind of error. Can any
> one point me in the direction of a simple demonstration of how this
> works.
> Thanks
>
> Pete
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02611 seconds