From 5a6006d91dab2244638eba92fd59e1b4c4359443 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 31 Oct 2005 15:54:29 +0000 Subject: [PATCH] Sequence.getDatasetSequence().getFeatures --- src/jalview/gui/SeqPanel.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 53130af..600da64 100755 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -95,6 +95,13 @@ public class SeqPanel extends JPanel public void mouseMoved(MouseEvent evt) { doMouseMoved(evt); + if (editingSeqs) + { + // This is because MacOSX creates a mouseMoved + // If control is down + if(!av.isDataset()) + doMouseDragged(evt); + } } public void mouseDragged(MouseEvent evt) @@ -173,6 +180,7 @@ public class SeqPanel extends JPanel if (evt.isAltDown() || evt.isControlDown()) { groupEditing = true; + } editingSeqs = true; @@ -382,7 +390,7 @@ public class SeqPanel extends JPanel // use aa to see if the mouse pointer is on a if (av.showSequenceFeatures) { - Vector features = sequence.getSequenceFeatures(); + Vector features = sequence.getDatasetSequence().getSequenceFeatures(); if(features!=null) { StringBuffer sbuffer = new StringBuffer(""); @@ -410,11 +418,13 @@ public class SeqPanel extends JPanel } sbuffer.append(""); - if(sbuffer.equals("")) + if(sbuffer.length()==13) // setToolTipText(""); else setToolTipText(sbuffer.toString()); } + else + setToolTipText(""); } } -- 1.7.10.2