X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FJalview2XML.java;h=a93e84cb430f26b1e52e444551c5f9265b2a62f5;hb=8a6fa9ea9900d0f106529c3f6283e7f9d76dd2cb;hp=b28ed0e3d9d20bdd348ad79210f1cd5cc5681105;hpb=153dd62dc91da13ae732600e6ea55ddbe15eab39;p=jalview.git diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index b28ed0e..a93e84c 100755 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -2696,16 +2696,18 @@ public class Jalview2XML { public void run() { - AppJmol sview=null; - try { - sview=new AppJmol(pdbf, id, sq, alf.alignPanel, fileloc, - - rect, vid); - } - catch (OutOfMemoryError ex) + AppJmol sview = null; + try + { + sview = new AppJmol(pdbf, id, sq, alf.alignPanel, + fileloc, + + rect, vid); + } catch (OutOfMemoryError ex) { - new OOMWarning("restoring structure view for PDB id "+id,(OutOfMemoryError) ex.getCause()); - if (sview!=null && sview.isVisible()) + new OOMWarning("restoring structure view for PDB id " + + id, (OutOfMemoryError) ex.getCause()); + if (sview != null && sview.isVisible()) { sview.closeViewer(); sview.setVisible(false); @@ -2716,8 +2718,8 @@ public class Jalview2XML }); } catch (InvocationTargetException ex) { - warn("Unexpected error when opening Jmol view.",ex); - + warn("Unexpected error when opening Jmol view.", ex); + } catch (InterruptedException e) { // e.printStackTrace();