JAL-1705 suppress jvsuffix (for sequence id matching to work)
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 21 Jan 2016 15:18:59 +0000 (15:18 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 21 Jan 2016 15:18:59 +0000 (15:18 +0000)
src/jalview/datamodel/SequenceDummy.java

index afe2961..172c25f 100644 (file)
@@ -50,4 +50,14 @@ public class SequenceDummy extends Sequence
   {
     return dummy;
   }
+
+  /**
+   * Always suppress /start-end for display name as we don't know it
+   */
+  @Override
+  public String getDisplayId(boolean jvsuffix)
+  {
+    // required for correct behaviour of SequenceIdMatcher
+    return super.getDisplayId(false);
+  }
 }