How to retrieve a Scene in an e4 application? [message #1367777] |
Mon, 19 May 2014 19:17  |
Eclipse User |
|
|
|
I want to implement a timeout feature in my application - if there is no user interaction for some time, the view should do something. In this case, I need to add an event filter in the whole scene in order to grab the events that restart the timeout timer i.e. mouse and keyboard events.
I tried to get a Scene from the BorderPane that is being injected in the @PostConstruct of my Part class, but the scene is null. I noticed that borderPane.getParent() is a org.eclipse.fx.ui.workbench.renderers.fx.DefPartRenderer but it seems that there is no method to retrieve the scene.
Is it possible to get the scene in an e4 + e(fx)clipse application? If not, is there another approach to achieve this timeout feature?
Thanks in advance.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02913 seconds