From: amwaterhouse Date: Fri, 4 May 2007 13:33:50 +0000 (+0000) Subject: Add dbrefs before zero length features X-Git-Tag: Release_2_3~59 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=76bcc855ad9bda24908a3e3e7393d83a2f1a0eca;p=jalview.git Add dbrefs before zero length features --- diff --git a/src/jalview/gui/IdPanel.java b/src/jalview/gui/IdPanel.java index e6c3009..aa91354 100755 --- a/src/jalview/gui/IdPanel.java +++ b/src/jalview/gui/IdPanel.java @@ -80,6 +80,19 @@ public class IdPanel tip.append("
"); tip.append(sequence.getDescription()); + DBRefEntry[] dbrefs = sequence.getDatasetSequence().getDBRef(); + if (dbrefs != null) + { + tip.append(""); + for (int i = 0; i < dbrefs.length; i++) + { + tip.append("
"); + tip.append(dbrefs[i].getSource() + " " + + dbrefs[i].getAccessionId()); + } + tip.append("
"); + } + //ADD NON POSITIONAL SEQUENCE INFO SequenceFeature[] features = sequence.getDatasetSequence(). getSequenceFeatures(); @@ -98,18 +111,6 @@ public class IdPanel tip.append("
"); } - DBRefEntry[] dbrefs = sequence.getDatasetSequence().getDBRef(); - if (dbrefs != null) - { - tip.append(""); - for (int i = 0; i < dbrefs.length; i++) - { - tip.append("
"); - tip.append(dbrefs[i].getSource() + " " - + dbrefs[i].getAccessionId()); - } - tip.append("
"); - } tip.append(""); setToolTipText(tip.toString());