|GEF4 Tooltip [message #1729422]
||Thu, 14 April 2016 05:27
| Colin Sharples
Registered: July 2009
Location: Wellington, New Zealand
I would like to add tooltips to my GeometryNodes, for any part where the content model has a non empty name property. This was fairly straightforward in Draw2D, as you just set Figure.setToolTip(IFigure), but it seems like there is more work involved in GEF4.|
Following the MVC Logo example I have a delete hover handle that appears after a suitable delay, and I traced that back to FXHoverBehavior. I tried creating an extension of FXHoverBehavior, and although I could get that to display a tool tip label, it obviously wasn't right as there were lots of exceptions getting thrown. It feels like there should be some simple hook to add behaviour that happens after the mouse has hovered for a short while, but I can't work out where. FXHoverTool doesn't seem right either, as it is only triggered by the mouse moving, and you would have to add your own listeners somewhere to detect the actual hovering.
It seems like this is an awful lot of work for something that should be really simple. Am I missing something?
CTG Games Ltd
Wellington, New Zealand
Powered by FUDForum
. Page generated in 0.02190 seconds