From: gmungoc Date: Thu, 12 Apr 2018 13:28:25 +0000 (+0100) Subject: JAL-1847 minor post-review updates X-Git-Tag: Release_2_10_4~32^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e7bad5b433c747aed96a6ec44fac18051d8b2476;p=jalview.git JAL-1847 minor post-review updates --- diff --git a/src/jalview/api/structures/JalviewStructureDisplayI.java b/src/jalview/api/structures/JalviewStructureDisplayI.java index 9ba513a..2cd9348 100644 --- a/src/jalview/api/structures/JalviewStructureDisplayI.java +++ b/src/jalview/api/structures/JalviewStructureDisplayI.java @@ -105,8 +105,19 @@ public interface JalviewStructureDisplayI */ void updateTitleAndMenus(); + /** + * Answers true if the viewer should attempt to align any added structures, + * else false + * + * @return + */ boolean isAlignAddedStructures(); + /** + * Sets the flag for whether added structures should be aligned + * + * @param alignAdded + */ void setAlignAddedStructures(boolean alignAdded); } diff --git a/src/jalview/gui/AppJmol.java b/src/jalview/gui/AppJmol.java index dae54a5..6c934c8 100644 --- a/src/jalview/gui/AppJmol.java +++ b/src/jalview/gui/AppJmol.java @@ -57,7 +57,7 @@ public class AppJmol extends StructureViewerBase private static final String SPACE = " "; - private static final String BACKSLASH = "\""; + private static final String QUOTE = "\""; AppJmolBinding jmb; @@ -325,8 +325,8 @@ public class AppJmol extends StructureViewerBase StringBuilder fileList = new StringBuilder(); for (String s : files) { - fileList.append(SPACE).append(BACKSLASH) - .append(Platform.escapeString(s)).append(BACKSLASH); + fileList.append(SPACE).append(QUOTE) + .append(Platform.escapeString(s)).append(QUOTE); } String filesString = fileList.toString();