if(selectedSequenceGroup==null)\r
{\r
selectedSequenceGroup = new SequenceGroup();\r
- av.alignment.addGroup( selectedSequenceGroup );\r
+ av.setRubberbandGroup( selectedSequenceGroup );\r
+ // av.alignment.addGroup( selectedSequenceGroup );\r
selectedSequenceGroup.setStartRes(0);\r
selectedSequenceGroup.setEndRes( pickedSeq.getSequence().length());\r
}\r
\r
if( javax.swing.SwingUtilities.isRightMouseButton(e))\r
{\r
- String id = av.getAlignment().getSequenceAt(seq).getName();\r
+ jalview.gui.PopupMenu pop = new jalview.gui.PopupMenu( av , alignPanel.seqPanel);\r
+ pop.show(this, e.getX(), y);\r
+\r
+\r
+ /* String id = av.getAlignment().getSequenceAt(seq).getName();\r
String s = (String)JOptionPane.showInternalInputDialog(\r
this,\r
"Edit sequence name",\r
{\r
av.getAlignment().getSequenceAt(seq).setName(s);\r
alignPanel.RefreshPanels();\r
- }\r
+ }*/\r
\r
}\r
else\r
{\r
- selectedSequenceGroup = av.alignment.findGroup(seq);\r
+\r
+ selectedSequenceGroup = av.getRubberbandGroup();\r
+ if(selectedSequenceGroup==null)\r
+ {\r
+ selectedSequenceGroup = new SequenceGroup();\r
+ av.setRubberbandGroup(selectedSequenceGroup);\r
+ }\r
+\r
+ selectedSequenceGroup.setStartRes(0);\r
+ selectedSequenceGroup.setEndRes( av.getAlignment().getWidth()-1 );\r
+\r
+ // selectedSequenceGroup = av.alignment.findGroup(seq);\r
\r
if (seq != -1)\r
selectSeqs(seq,seq);\r