Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » a selection problem
a selection problem [message #196093] Fri, 16 September 2005 06:05
Eclipse UserFriend
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
Previous Topic:selecting and moving children
Next Topic:Compound Direct Graph and labeled Edges
Goto Forum:
  


Current Time: Thu Apr 25 09:01:06 GMT 2024

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

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

Back to the top