Is it possible to set custom mouse listeners on the model visualization? I've been using plantuml to visualize a Xtext language and I'm thinking about adding extra funcionalities to the visualization - like focusing on an element declaration when clicking on its class on visualization, for example.
EDIT: I found a way to add the listener by cloning the code at
https://github.com/hallvard/plantuml.git, but I don't have a clue how to detect which element is being pressed. The jar the repository (version 1.1.10) uses has no code attached and I couldn't find the 1.1.10 source. Can anyone help me?
EDIT 2: updated the jar to latest version and attached the source code to it. But after searching the code I still have no clue of how to get elements with position.