X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FSequenceDummy.java;h=441047fd31998894966ac0583345c414128379ce;hb=db93a1adcbe0a4eaaf06e0a70ade0d6c5c1961c3;hp=4a8c3ee439d4e8242ae949eae24782d342aaea3e;hpb=24e842ef4b4fa929644b6ab4f79c7b61575c7b55;p=jalview.git diff --git a/src/jalview/datamodel/SequenceDummy.java b/src/jalview/datamodel/SequenceDummy.java index 4a8c3ee..441047f 100644 --- a/src/jalview/datamodel/SequenceDummy.java +++ b/src/jalview/datamodel/SequenceDummy.java @@ -1,6 +1,26 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2) + * Copyright (C) 2015 The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.datamodel; -public class SequenceDummy extends Sequence implements SequenceI +public class SequenceDummy extends Sequence { public SequenceDummy(String sequenceId) { @@ -8,6 +28,7 @@ public class SequenceDummy extends Sequence implements SequenceI } private boolean dummy = true; + /** * become a proxy for mseq, merging any existing annotation on this sequence * @@ -16,7 +37,7 @@ public class SequenceDummy extends Sequence implements SequenceI public void become(SequenceI mseq) { initSeqFrom(mseq, null); - dummy=false; + dummy = false; } /** @@ -29,4 +50,14 @@ public class SequenceDummy extends Sequence implements SequenceI { 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); + } }