X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=getdown%2Fsrc%2Fgetdown%2Flauncher%2Fsrc%2Fmain%2Fjava%2Fcom%2Fthreerings%2Fgetdown%2Flauncher%2FGetdownApp.java;h=7c54f80c2ee76fe4640cf69201a1b4be38235142;hb=e71869cde71ac42b05f9a1c45776dc5bb7f469d7;hp=fd83de3d0c2a454f9d7e9ecd6319fb26c7b9863a;hpb=a84906104415e9e65713af39a225090ebd7beff0;p=jalview.git diff --git a/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/GetdownApp.java b/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/GetdownApp.java index fd83de3..7c54f80 100644 --- a/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/GetdownApp.java +++ b/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/GetdownApp.java @@ -7,7 +7,6 @@ package com.threerings.getdown.launcher; import java.awt.Color; import java.awt.Container; -import java.awt.EventQueue; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; @@ -29,6 +28,7 @@ import javax.swing.WindowConstants; import com.samskivert.swing.util.SwingUtil; import com.threerings.getdown.data.Application; +import com.threerings.getdown.data.Build; import com.threerings.getdown.data.EnvConfig; import com.threerings.getdown.data.SysProps; import com.threerings.getdown.util.LaunchUtil; @@ -92,7 +92,7 @@ public class GetdownApp } if (abort) System.exit(-1); - log.info("Starting ...."); + log.info("Starting ..."); try { jalview.bin.StartupNotificationListener.setListener(); @@ -117,6 +117,7 @@ public class GetdownApp log.info("-- User Name: " + System.getProperty("user.name")); log.info("-- User Home: " + System.getProperty("user.home")); log.info("-- Cur dir: " + System.getProperty("user.dir")); + log.info("-- launcher version: "+Build.version()); log.info("-- startupFilesParameterString: " + startupFilesParameterString); log.info("---------------------------------------------"); @@ -132,6 +133,19 @@ public class GetdownApp handleWindowClose(); } }); + + // keep_on_top + try { + readConfig(false); + } catch (Exception e) { + log.warning("Error reading config for keep_on_top"); + } + // move window to top, always on top + if (_ifc.keepOnTop) { + log.info("Keep on top set to ", "keep_on_top", _ifc.keepOnTop); + _frame.setAlwaysOnTop(true); + } + // handle close on ESC String cancelId = "Cancel"; // $NON-NLS-1$ _frame.getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( @@ -189,6 +203,7 @@ public class GetdownApp SwingUtil.centerWindow(_frame); _frame.setVisible(true); } + _shownContainer = true; } @Override @@ -244,7 +259,7 @@ public class GetdownApp super.fail(message); // super.fail causes the UI to be created (if needed) on the next UI tick, so we // want to wait until that happens before we attempt to redecorate the window - EventQueue.invokeLater(new Runnable() { + EQinvoke(new Runnable() { @Override public void run() { // if the frame was set to be undecorated, make window decoration available