Based on the documentation you linked to, it looks like you can do this:
StartupNotification.registerStartupListener(new StartupNotification.Listener() {
public void startupPerformed(String parameters) {
System.out.println("Startup performed with parameters " + parameters);
}
});
Since startupPerformed
will be called from different threads, you will need to make sure that the code that handles these notifications is thread-safe.
The documentation also says:
For multiple files, files are surrounded by double-quotes and separated by spaces.
So you will need to parse the parameter string yourself as well.