|Re: Traverse diagram elements based on underlying EObject Properties [message #1751417 is a reply to message #1751389]
||Tue, 10 January 2017 07:46
| Michael Wenz
Registered: July 2009
Location: Walldorf, Germany
if I understood you correctly, you want to use the tab key to navigate through the diagram and select the shapes in an order you specify programmatically, right? I haven't tried that, and I'm not sure if that will be possible...
Graphiti relies on GEF for the keyboard based navigation and I have not heared of any functionality allowing to influence GEF on the next element to select on keyboard navigation. Hooking in via KeyHandler as you tried could be the only option. What I can say for sure is that Graphiti does not offer anything here. Maybe you should also ask this question in the GEF forum.
Anyhow, when you have the GEF diagram elements, you might use getModel() on an EditPart to get to the Graphiti shape/connection, then use Graphiti functionality (getBusinessObject) to go to your domain model and check any properties there.
Powered by FUDForum
. Page generated in 0.04368 seconds