JAL-2944 get viewer’s title via toString()
authorJim Procter <jprocter@issues.jalview.org>
Thu, 5 Apr 2018 13:24:08 +0000 (14:24 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 5 Apr 2018 13:24:08 +0000 (14:24 +0100)
src/jalview/gui/StructureViewerBase.java

index 3e06724..3b80ff0 100644 (file)
@@ -1019,6 +1019,12 @@ public abstract class StructureViewerBase extends GStructureViewer
   }
 
   @Override
+  public String toString()
+  {
+    return getTitle();
+  }
+
+  @Override
   public boolean hasMapping()
   {
     if (worker != null && (addingStructures || _started))