Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Single Selection ViewerProperties Databinding with Converter(Unable to have the Viewer Selection automatically set using databinding)
Single Selection ViewerProperties Databinding with Converter [message #1692622] Fri, 17 April 2015 00:58
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 94
Registered: May 2010
Member
Hi,

I would like to bind a TreeViewer selection with an EMF object. I use Model to Target and Target to Model Converters in order to make proper transformations. This is required because my UI meta-models differ a bit from the domain meta-model. I am able to bind only on one way though. When I select an element, my converter does the job and return the appropriate object. However, I do not know what to do and/or what the Converter must return in order to the TreeViewer to receive the appropriate TreeSelection. I have not seen any piece of code showing that kind of bidirectional relationship.

Thanks in advance for any tips.

Regent Wink
Previous Topic:Passing data between ViewerDropAdapter and DragSourceListener
Next Topic:Undo/Redo with TextViewers and Dirty State Handling
Goto Forum:
  


Current Time: Fri Apr 19 07:30:31 GMT 2024

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

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

Back to the top