a selection problem [message #196093] |
Fri, 16 September 2005 06:05 |
Eclipse User |
|
|
|
Originally posted by: no.yes.maybe
Hi,
I'm developing a plugin with a graphic model viewer. The Outline view
shows a hierarchycal model. When I select a node in the tree the model
viewer shows the selected node together with its sibilings, considering
the parent node as the whole diagram. This part works fine.
Now I'm trying to implement double-click on the diagram nodes which are
not leafs in the tree in order to "navigate" inside them.
When the double-click is performed I call a method of my editor that
resets the root model to the clicked node. It works, but after that I
get a selection event for the node I selected. Because of the way I
handle such event, the view goes back to the outside.
How can I suppress the event?
As an alternative, given a model, how can I cause a selection on the
outline tree node corresponding to such model? that would be enough
because my code would handle the selection event to change the view
properly.
THanks,
Roberto
|
|
|
Powered by
FUDForum. Page generated in 0.03559 seconds