简体   繁体   中英

Is it possible to retrieve the HostServices interface within Drombler FX?

Is there some way to retrieve the HostServices implementation within a bundle? I would like to open a link within an action. Maybe putting it into the osgi service registry would be a good idea so people can access it.

Currently it's not possible to retrieve the HostServices as the Application instance is not accessible from any JavaFX component (Node, Scene, Window,...) AFAIK and it's not handled specially by Drombler FX either.

Depending on your use case, a work-around could be to use the Desktop class, though this will create a dependency on the AWT stack for the time being.

I filed an issue to support HostServices in Drombler FX.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM