X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FChimeraViewFrame.java;h=fd84b37a5194dd31685df542908c986692e8ed59;hb=9811278f9e18ee6cb88470dbae98da046734a0af;hp=d07a7c27e42fdc5fd537f532d87505a48a74655b;hpb=e1562ea181702ad96f60daedb78e0ea032e787f6;p=jalview.git diff --git a/src/jalview/gui/ChimeraViewFrame.java b/src/jalview/gui/ChimeraViewFrame.java index d07a7c2..fd84b37 100644 --- a/src/jalview/gui/ChimeraViewFrame.java +++ b/src/jalview/gui/ChimeraViewFrame.java @@ -20,6 +20,7 @@ */ package jalview.gui; +import jalview.api.AlignmentViewPanel; import jalview.api.FeatureRenderer; import jalview.bin.Cache; import jalview.datamodel.AlignmentI; @@ -480,7 +481,7 @@ public class ChimeraViewFrame extends StructureViewerBase { filePDB.add(thePdbEntry); filePDBpos.add(Integer.valueOf(pi)); - files.append(" \"" + Platform.escapeString(file) + "\""); + files.append(" \"" + Platform.escapeBackslashes(file) + "\""); } } } catch (OutOfMemoryError oomerror) @@ -584,9 +585,9 @@ public class ChimeraViewFrame extends StructureViewerBase } // refresh the sequence colours for the new structure(s) - for (AlignmentPanel ap : _colourwith) + for (AlignmentViewPanel avp : _colourwith) { - jmb.updateColours(ap); + jmb.updateColours(avp); } // do superposition if asked to if (alignAddedStructures) @@ -834,10 +835,8 @@ public class ChimeraViewFrame extends StructureViewerBase protected String alignStructs_withAllAlignPanels() { String reply = super.alignStructs_withAllAlignPanels(); - if (reply != null) - { - statusBar.setText("Superposition failed: " + reply); - } + statusBar.setText( + reply == null ? " " : "Superposition failed: " + reply); return reply; }