From: Jim Procter Date: Wed, 27 Jul 2016 16:41:59 +0000 (+0100) Subject: JAL-2154 toString for forward references X-Git-Tag: Release_2_10_0~125^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9de1722b93793d379233e4680afc2700c5659eea;p=jalview.git JAL-2154 toString for forward references --- diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 0f15505..3bf73df 100644 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -278,9 +278,12 @@ public class Jalview2XML { String sref; - public SeqFref(String _sref) + String type; + + public SeqFref(String _sref, String type) { sref = _sref; + this.type = type; } public String getSref() @@ -314,6 +317,12 @@ public class Jalview2XML * @return true if the forward reference was fully resolved */ abstract boolean resolve(); + + @Override + public String toString() + { + return type + " reference to " + sref; + } } /** @@ -326,7 +335,7 @@ public class Jalview2XML public SeqFref newMappingRef(final String sref, final jalview.datamodel.Mapping _jmap) { - SeqFref fref = new SeqFref(sref) + SeqFref fref = new SeqFref(sref, "Mapping") { public jalview.datamodel.Mapping jmap = _jmap; @@ -349,7 +358,7 @@ public class Jalview2XML final AlignedCodonFrame _cf, final jalview.datamodel.Mapping _jmap) { - SeqFref fref = new SeqFref(sref) + SeqFref fref = new SeqFref(sref, "Codon Frame") { AlignedCodonFrame cf = _cf;