From 196235e9be03525849e4900a8a3ab85e28134d29 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 28 Apr 2006 12:32:36 +0000 Subject: [PATCH] Dont select groups on ids --- src/jalview/appletgui/IdPanel.java | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/src/jalview/appletgui/IdPanel.java b/src/jalview/appletgui/IdPanel.java index d159a4c..71acfa2 100755 --- a/src/jalview/appletgui/IdPanel.java +++ b/src/jalview/appletgui/IdPanel.java @@ -193,31 +193,15 @@ public class IdPanel return; } - if (!e.isControlDown() && !e.isShiftDown() && - av.alignment.findGroup(av.alignment.getSequenceAt(seq)) != null) - { - - SequenceGroup selection = new SequenceGroup(); - SequenceGroup sg = av.alignment.findGroup(av.alignment.getSequenceAt(seq)); - selection.setStartRes(0); - selection.setEndRes(av.alignment.getWidth() - 1); - for (int i = 0; i < sg.getSize(); i++) - { - selection.addSequence(sg.getSequenceAt(i), true); - } - - av.setSelectionGroup(selection); - return; - } - if (av.getSelectionGroup() == null || - (!e.isControlDown() && av.getSelectionGroup() != null)) + if ((av.getSelectionGroup() == null) || + ((!e.isControlDown() && !e.isShiftDown()) && av.getSelectionGroup() != null)) { av.setSelectionGroup(new SequenceGroup()); + av.getSelectionGroup().setStartRes(0); + av.getSelectionGroup().setEndRes(av.alignment.getWidth() - 1); } - av.getSelectionGroup().setStartRes(0); - av.getSelectionGroup().setEndRes(av.alignment.getWidth() - 1); if (e.isShiftDown() && lastid != -1) { -- 1.7.10.2