Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » FXHoverTool should only look at nodes contained within the IViewer
FXHoverTool should only look at nodes contained within the IViewer [message #1729038] Sat, 09 April 2016 23:12 Go to next message
Colin Sharples is currently offline Colin SharplesFriend
Messages: 90
Registered: July 2009
Location: Wellington, New Zealand
Member

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
Re: FXHoverTool should only look at nodes contained within the IViewer [message #1729043 is a reply to message #1729038] Sun, 10 April 2016 06:00 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 235
Registered: July 2009
Location: L√ľnen
Senior Member
Can you please raise a bug?
Re: FXHoverTool should only look at nodes contained within the IViewer [message #1729076 is a reply to message #1729043] Sun, 10 April 2016 23:30 Go to previous messageGo to next message
Colin Sharples is currently offline Colin SharplesFriend
Messages: 90
Registered: July 2009
Location: Wellington, New Zealand
Member

Raised bug #491401

Colin Sharples
CTG Games Ltd
Wellington, New Zealand
Re: FXHoverTool should only look at nodes contained within the IViewer [message #1729459 is a reply to message #1729076] Thu, 14 April 2016 10:03 Go to previous message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 148
Registered: March 2015
Senior Member
Hi Colin,

I added a null check within FXTypeTool and resolved the bug. If you find another related problem, feel free to reopen the ticket.

Best regards,
Matthias
Previous Topic:[Zest] How to change color and labeltext of an edge(connection)?
Next Topic:GEF4 Geometry performance
Goto Forum:
  


Current Time: Mon Jul 16 04:41:18 GMT 2018

Powered by FUDForum. Page generated in 0.04830 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top