Associate SWT Application with specific files on OS X [message #436298] |
Fri, 14 May 2004 22:25 |
Eclipse User |
|
|
|
Originally posted by: ochalouhi.SPAMaelitis.com
I'm trying to associate my application (using only SWT) with some
specific files.
I'm not an OS X guru, so someone modified my Info.plist file so that OS
X is aware that my application should open those files.
Now, usually, using AWT (or Swing), the application has to register
itself as a special listener using com.apple.eawt.Application and
ApplicationListener (for the event public void
handleOpenFile(ApplicationEvent evt) { ... )
Which doesn't work with SWT (or maybe javaswt ...) anyway, the main
Thread stalls in loading the "awt" library.
Anyone has an idea on how I could do this (in an application bundle).
My application usually opens file by using the command line (the only -
optional - argument is a file to open ....).
Regards,
Olivier Chalouhi.
|
|
|
Powered by
FUDForum. Page generated in 0.03028 seconds