URI Scheme handler without SWT [message #1832248] |
Mon, 14 September 2020 05:15  |
Eclipse User |
|
|
|
Hello,
I have an RCP Application which however uses JavaFX for UI.
What I need to do is to handle custom URI scheme calls on macOS (the way you handle it on macOS differs from another OSs where URL is sent to application as program argument).
I found out that Eclipse has its mechanism for registering and handling URI scheme calls and it also provides extension point for plugins to define their own schemes.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=530835
If I understand correctly how this works under the hood for URI scheme calls handling, equinox launcher somehow handles URI scheme calls and then passes URL to org.eclipse.swt.widgets.Display class which then generates SWT.OpenUrl event. (assumption based on gerrit changes of this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=351303).
Equinox launcher is used in my application, SWT however is not.
So is there some way to handle open URL events and not importing whole SWT?
An option comes to mind that implies "re-inventing" the functionality of the Display class to receive events from the Equinox launcher. Is it possible?
Or maybe it is possible to import some minimal set of SWT packages to provide functionality for handling URI schemes (but not importing the whole SWT which can significantly affect the size of the app
)?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04064 seconds