|Re: Tree: "Good Practice" when base domain doesnŽt represent Tree structure ? [message #461121 is a reply to message #461076]
||Fri, 16 September 2005 14:28
Registered: July 2009
and thanks again for the help.
I can now display my wrapped domain model as a tree.
However, i donŽt know how i can propagate events from the underlying
domain model to the tree now.
The domain model fires a SELECTION_CHANGED event whenever a selection
occurs on one of the domain model objects.
I already catch this Selection in the TreeViewPartClass, via a
PropertyChange() Method. (I implemented the ViewPartClass as a
I now want to select the corresponding object in the Tree, which
represents the object, which was selected in the domain.
From there on i donŽt know how to go further.
I got the Selection Object in the ViewPart from the Tree, but i donŽt know
how to make the tree select the corresponding TreeWrapperObject.
When i try to set the selection via:
I get an
"org.eclipse.swt.SWTException: Invalid thread access"
Furthermore the setSelection wants an object which implements the
What object should i put into this method?
I guess the WrapperObjects for my model, am i right? So i have to
implement the ISelectionInterface for those models to?
Could anybody give me a hint on how to do this best?
Sorry if this posting got a little bit confusing.
But iŽm quite confused at the moment, too, on how to handle this.
Any help/idea is appreciated very much, since this is my first time with
Powered by FUDForum
. Page generated in 0.02012 seconds