I have a Java application which is packaged for Windows via installanywhere, and for OSX via jarbundler into a double-clickable .exe and .app respectively.
I understand associating file types via registry (windows) or plist file (OSX) such that double-clicking a registered file will open my application and the file. This works fine when my application is not running.
My question is about the scenario my application is already running, and I want that instance to receive and handle subsequent double-click events on registered file types, ie, opening more documents in the same instance of the app (like tabs in your browser.)
The current behavior is that the OS starts a new instance of the app and opens the document there - less desirable. Think of my problem as a new instance of photoshop opening each time I double-click a JPG file.
Is there some documentation on how to integrate this for Windows and/or OSX?