GEF4 Tooltip [message #1729422] |
Thu, 14 April 2016 01:27  |
Eclipse User |
|
|
|
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?
|
|
|
|
Re: GEF4 Tooltip [message #1729503 is a reply to message #1729443] |
Thu, 14 April 2016 15:00  |
Eclipse User |
|
|
|
D'oh! I thought there had to be a simple way. I'm learning GEF4 and JavaFX at the same time, so I'm never sure if the thing I'm looking for should be in GEF4 or JavaFX. Thanks again.
|
|
|
Powered by
FUDForum. Page generated in 0.07048 seconds