From e7bad5b433c747aed96a6ec44fac18051d8b2476 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 12 Apr 2018 14:28:25 +0100 Subject: [PATCH] JAL-1847 minor post-review updates --- src/jalview/api/structures/JalviewStructureDisplayI.java | 11 +++++++++++ src/jalview/gui/AppJmol.java | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) 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(); -- 1.7.10.2