Merge branch 'releases/Release_2_11_3_Branch'
[jalview.git] / getdown / src / getdown / launcher / src / main / java / jalview / bin / StartupNotificationListener.java
1 package jalview.bin;
2
3 import com.threerings.getdown.launcher.GetdownApp;
4 import com.threerings.getdown.launcher.StatusPanel;
5 import static com.threerings.getdown.Log.log;
6
7 public class StartupNotificationListener {
8
9   public static void setListener() {
10
11     
12     try {
13       com.install4j.api.launcher.StartupNotification.registerStartupListener(
14         new com.install4j.api.launcher.StartupNotification.Listener() {
15           @Override
16           public void startupPerformed(String parameters) { 
17             log.info("StartupNotification.Listener.startupPerformed: '"+parameters+"'");
18             GetdownApp.setStartupFilesParameterString(parameters);
19           }
20         }
21       );
22     } catch (Exception e) {
23       e.printStackTrace();
24     } catch (NoClassDefFoundError t) {
25       log.warning("Starting without install4j classes");
26     }
27
28   }
29
30 }