JAL-2137 hack to locate a StructureSelectionManager from some context
authorJim Procter <jprocter@issues.jalview.org>
Mon, 4 Jul 2016 11:53:33 +0000 (12:53 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 4 Jul 2016 11:53:33 +0000 (12:53 +0100)
src/jalview/structure/StructureSelectionManager.java

index fb96b22..04cb559 100644 (file)
@@ -1328,4 +1328,9 @@ public class StructureSelectionManager
     return seqmappings;
   }
 
+  public static StructureSelectionManager getStructureSelectionManager()
+  {
+    return instances.values().iterator().next();
+  }
+
 }