* @j2sIgnore
*/
{
+ boolean defaultStartupFile = Cache.getDefault("STARTUP_FILE",
+ null) == null;
file = Cache.getDefault("STARTUP_FILE",
Cache.getDefault("www.jalview.org", "https://www.jalview.org")
+ "/examples/exampleFile_2_7.jvp");
file.replace("2_7.jar", "2_7.jvp");
// and remove the stale setting
Cache.removeProperty("STARTUP_FILE");
+ defaultStartupFile = true;
}
protocol = AppletFormatAdapter.checkProtocol(file);
startUpAlframe = fileLoader.LoadFileWaitTillLoaded(file, protocol,
format);
+ if (defaultStartupFile)
+ {
+ Console.debug("Resetting up-to-date flag for startup file");
+ startUpAlframe.getViewport().setSavedUpToDate(true);
+ }
// extract groovy arguments before anything else.
}
private static boolean setFlatLookAndFeel()
{
boolean set = false;
- if (Platform.isMac()) {
+ if (Platform.isMac())
+ {
try
{
- UIManager.setLookAndFeel("com.formdev.flatlaf.themes.FlatMacLightLaf");
+ UIManager.setLookAndFeel(
+ "com.formdev.flatlaf.themes.FlatMacLightLaf");
set = true;
+ Console.debug("*** Loaded FlatMacLightLaf");
} catch (ClassNotFoundException | InstantiationException
| IllegalAccessException | UnsupportedLookAndFeelException e)
{
Console.debug("Exception loading FlatMacLightLaf", e);
}
}
- if (!set) {
+ if (!set)
+ {
try
{
UIManager.setLookAndFeel("com.formdev.flatlaf.FlatLightLaf");
set = true;
+ Console.debug("*** Loaded FlatLightLaf");
} catch (ClassNotFoundException | InstantiationException
| IllegalAccessException | UnsupportedLookAndFeelException e)
{
if (SystemInfo.isMacFullWindowContentSupported
&& Desktop.desktop != null)
{
+ Console.debug("Setting transparent title bar");
Desktop.desktop.getRootPane()
.putClientProperty("apple.awt.fullWindowContent", true);
Desktop.desktop.getRootPane()