FXHoverTool should only look at nodes contained within the IViewer [message #1729038] |
Sat, 09 April 2016 23:12 |
|
I am working through Frank Benoit's tutorial [1], converting from a pure JavaFX application into an e4 RCP application that uses JavaFX as the renderer. This is working pretty well - essentially just change the target to replace the Eclipse platform location with the E(fx)clipse Target Platform. You can then just create your MVC.FX module in an RCP part and off you go.
One irritation is the FXHoverTool is constantly spitting out exceptions because it is trying to find policies for Nodes that are not part of the IViewer. In my case, the FXViewer's canvas is the child of an HBox, so that I can have a palette component on the left of the part. It's the event handler created in FXHoverTool.createHoverFilter() that is barfing - it even has a comment:
// FIXME: For some events, "The given target Node is not
// contained within an IViewer."
It would be really nice if this were fixed quite soon!
[1] http://fbenoit.blogspot.co.nz/2015/11/gef4-tutorial-part1.html
Colin Sharples
CTG Games Ltd
Wellington, New Zealand
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03494 seconds