Add dbrefs before zero length features
authoramwaterhouse <Andrew Waterhouse>
Fri, 4 May 2007 13:33:50 +0000 (13:33 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 4 May 2007 13:33:50 +0000 (13:33 +0000)
src/jalview/gui/IdPanel.java

index e6c3009..aa91354 100755 (executable)
@@ -80,6 +80,19 @@ public class IdPanel
         tip.append("<table width=250 border=0><tr><td><i>");\r
         tip.append(sequence.getDescription());\r
 \r
+        DBRefEntry[] dbrefs = sequence.getDatasetSequence().getDBRef();\r
+        if (dbrefs != null)\r
+        {\r
+          tip.append("<i>");\r
+          for (int i = 0; i < dbrefs.length; i++)\r
+          {\r
+            tip.append("<br>");\r
+            tip.append(dbrefs[i].getSource() + " "\r
+                       + dbrefs[i].getAccessionId());\r
+          }\r
+          tip.append("</i>");\r
+        }\r
+\r
         //ADD NON POSITIONAL SEQUENCE INFO\r
         SequenceFeature[] features = sequence.getDatasetSequence().\r
             getSequenceFeatures();\r
@@ -98,18 +111,6 @@ public class IdPanel
         tip.append("</i></td></tr></table>");\r
       }\r
 \r
-      DBRefEntry[] dbrefs = sequence.getDatasetSequence().getDBRef();\r
-      if (dbrefs != null)\r
-      {\r
-        tip.append("<i>");\r
-        for (int i = 0; i < dbrefs.length; i++)\r
-        {\r
-          tip.append("<br>");\r
-          tip.append(dbrefs[i].getSource() + " "\r
-                     + dbrefs[i].getAccessionId());\r
-        }\r
-        tip.append("</i>");\r
-      }\r
 \r
       tip.append("</html>");\r
       setToolTipText(tip.toString());\r