From: amwaterhouse Date: Mon, 31 Oct 2005 15:54:29 +0000 (+0000) Subject: Sequence.getDatasetSequence().getFeatures X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5a6006d91dab2244638eba92fd59e1b4c4359443;p=jalview.git Sequence.getDatasetSequence().getFeatures --- 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(""); } }