X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fbin%2FJalview.java;h=f911675f775ee9a86532c575e31e07a80f959e34;hb=ff6e13326784845c9de552a7acd4b8dcd9a68952;hp=9ec00334946c525298817e219ff2d9a2ef399777;hpb=3d0101179759ef157b088ea135423cd909512d9f;p=jalview.git
diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java
index 9ec0033..f911675 100755
--- a/src/jalview/bin/Jalview.java
+++ b/src/jalview/bin/Jalview.java
@@ -20,9 +20,6 @@
*/
package jalview.bin;
-import groovy.lang.Binding;
-import groovy.util.GroovyScriptEngine;
-
import jalview.ext.so.SequenceOntology;
import jalview.gui.AlignFrame;
import jalview.gui.Desktop;
@@ -66,6 +63,9 @@ import java.util.Vector;
import javax.swing.UIManager;
+import groovy.lang.Binding;
+import groovy.util.GroovyScriptEngine;
+
/**
* Main class for Jalview Application
*
@@ -175,6 +175,8 @@ public class Jalview
*
* @param args
* open filename
+ * @throws InterruptedException
+ * @throws IOException
*/
public static void main(String[] args)
{
@@ -184,6 +186,8 @@ public class Jalview
/**
* @param args
+ * @throws InterruptedException
+ * @throws IOException
*/
void doMain(String[] args)
{
@@ -275,6 +279,8 @@ public class Jalview
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception ex)
{
+ System.err.println("Unexpected Look and Feel Exception");
+ ex.printStackTrace();
}
if (Platform.isAMac())
{
@@ -290,6 +296,20 @@ public class Jalview
System.err.println(
"Failed to set QuaQua look and feel: " + e.toString());
}
+ if (!ch.randelshofer.quaqua.QuaquaManager.getLookAndFeel()
+ .equals(UIManager.getLookAndFeel()))
+ {
+ try
+ {
+ System.err.println(
+ "Quaqua LaF not available. Using VAqua(4).");
+ UIManager.setLookAndFeel("org.violetlib.aqua.AquaLookAndFeel");
+ } catch (Throwable e)
+ {
+ System.err.println(
+ "Failed to reset look and feel: " + e.toString());
+ }
+ }
}
/*
@@ -970,7 +990,7 @@ public class Jalview
}
try
{
- Map vbinding = new HashMap();
+ Map vbinding = new HashMap<>();
vbinding.put("Jalview", this);
if (af != null)
{
@@ -1036,7 +1056,7 @@ public class Jalview
+ nickname + "|" + url);
if (source == null)
{
- source = new Vector();
+ source = new Vector<>();
}
source.addElement(nickname);
}
@@ -1054,7 +1074,7 @@ public class Jalview
System.out.println("adding source '" + data + "'");
if (source == null)
{
- source = new Vector();
+ source = new Vector<>();
}
source.addElement(data);
}