| 1 | DataOpener knows how to open things in the correct application... i.e. emails in thunderbird, word documents in Word etc. etc |
| 2 | |
| 3 | This is damn tricky. |
| 4 | GnowsisAlpha had a dirty C hack done by Leo. This is clearly nasty. |
| 5 | |
| 6 | Options: |
| 7 | |
| 8 | * Apple Java Extensions does this on MacOSX http://developer.apple.com/documentation/Java/Reference/1.4.1/Java141API_AppleExtensions/api/com/apple/eawt/ApplicationListener.html |
| 9 | * Java 1.6 does this - http://download.java.net/jdk6/docs/api/java/awt/Desktop.html |
| 10 | * The Java Desktop Integration Classes (jdic) project does this. https://jdic.dev.java.net/ |
| 11 | * it uses JNI and native compiled things on every platform |
| 12 | * Gnowsis already uses this for the trayicon support. |
| 13 | * MacOSX support is ropy... at best - only older versions available and only half the API. |
| 14 | |
| 15 | Solution: |
| 16 | |
| 17 | * Use Apple Java Extensions for Macosx and jdic for all other platforms. |