/*\r
* Jalview - A Sequence Alignment Editor and Viewer\r
- * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
*\r
* This program is free software; you can redistribute it and/or\r
* modify it under the terms of the GNU General Public License\r
{\r
createNewGroup.setEnabled(false);\r
\r
- String searchString = textfield.getText().toUpperCase().trim();\r
+ String searchString = textfield.getText().trim();\r
+ if(!caseSensitive.isSelected())\r
+ searchString = searchString.toUpperCase();\r
+\r
if(searchString.length()<1)\r
return;\r
\r
{\r
int res = Integer.parseInt(searchString);\r
found = true;\r
- if (av.getSelectionGroup() == null || av.getSelectionGroup().getSize() < 1)\r
+ if (av.getSelectionGroup() == null || av.getSelectionGroup().getSize(false) < 1)\r
{\r
seq = (Sequence) av.getAlignment().getSequenceAt(0);\r
}\r
\r
if (selection != null)\r
{\r
- if ((selection.getSize() < 1) ||\r
+ if ((selection.getSize(false) < 1) ||\r
((selection.getEndRes() - selection.getStartRes()) < 2))\r
{\r
selection = null;\r
{\r
seq = (Sequence) av.alignment.getSequenceAt(seqIndex);\r
\r
- if ((selection != null) && !selection.sequences.contains(seq))\r
+ if ((selection != null) && !selection.getSequences(false).contains(seq))\r
{\r
seqIndex++;\r
resIndex = 0;\r
continue;\r
}\r
\r
- item = seq.getSequence().toUpperCase();\r
+ item = seq.getSequence();\r
+ if(!caseSensitive.isSelected())\r
+ item = item.toUpperCase();\r
\r
if ((selection != null) &&\r
(selection.getEndRes() < av.alignment.getWidth()-1))\r