From 76bcc855ad9bda24908a3e3e7393d83a2f1a0eca Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 4 May 2007 13:33:50 +0000 Subject: [PATCH] Add dbrefs before zero length features --- src/jalview/gui/IdPanel.java | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) 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()); -- 1.7.10.2