|
|
|
|
|
Re: separate property box while double clicking the node [message #991213 is a reply to message #907860] |
Mon, 17 December 2012 14:19  |
Eclipse User |
|
|
|
For anyone who stumbles upon this thread while searching for double click behaviour of an EditPart (more specifically, a REQ_OPEN request); if you have a NodeCompartmentEditPart as a child of your EditPart, it will not by default install the OPEN_ROLE policy on the NodeCompartment. Therefore, I had to manipulate the GMF templates to make them behave as expected.
When I generate the (inherited) diagram editor, the default behaviour of the editor is different from previously built versions (on an older Eclipse). The double-click behavior is suppposed to be activated anytime the element is double-clicked, but instead it only works on the first selection (i.e. instantiation) and when I double-click the edge of the Node.
I would therefore believe that something regarding this has changed in the templates or the getCommand hierarchy. I'm still looking for a way to install it on the NameLabelEditPart, but I haven't found it yet. If anyone can point me to restoring the old behavior, instead of having to emulate it, I would be very grateful.
Hope this helps in case the figures in your diagram become more complex.
|
|
|
Powered by
FUDForum. Page generated in 0.04859 seconds