From 4094ee69e0b9b6f231effaca4b314b288e4ea4ac Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 25 Jul 2006 09:45:04 +0000 Subject: [PATCH] Add dbrefs to mouseover --- src/jalview/gui/IdPanel.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/IdPanel.java b/src/jalview/gui/IdPanel.java index d1dc11d..f5e0f2f 100755 --- a/src/jalview/gui/IdPanel.java +++ b/src/jalview/gui/IdPanel.java @@ -100,9 +100,22 @@ public class IdPanel extends JPanel implements MouseListener, } } } - 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