Based on the documentation you are attached 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 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 also need to analyze the parameter string yourself.
source share