From: Jim Procter Date: Mon, 4 Jul 2016 11:53:33 +0000 (+0100) Subject: JAL-2137 hack to locate a StructureSelectionManager from some context X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=06c48f632b90bbaf30d30cbc3cfba6462f44873c;p=jalview.git JAL-2137 hack to locate a StructureSelectionManager from some context --- diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index fb96b22..04cb559 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -1328,4 +1328,9 @@ public class StructureSelectionManager return seqmappings; } + public static StructureSelectionManager getStructureSelectionManager() + { + return instances.values().iterator().next(); + } + }