bugfix todo for the 'edit sequence' command
authorjprocter <Jim Procter>
Tue, 26 Aug 2008 09:38:43 +0000 (09:38 +0000)
committerjprocter <Jim Procter>
Tue, 26 Aug 2008 09:38:43 +0000 (09:38 +0000)
src/jalview/commands/EditCommand.java

index 6740b7f..e859e3e 100644 (file)
@@ -421,10 +421,31 @@ public class EditCommand
     String oldstring;
     int start = command.position;
     int end = command.number;
-
+    // TODO TUTORIAL - Fix for replacement with different length of sequence (or whole sequence)
+    // TODO Jalview 2.4 bugfix change to an aggregate command - original sequence string is cut, new string is pasted in.
     command.number = start + command.string[0].length;
     for (int i = 0; i < command.seqs.length; i++)
     {
+      /**  cut
+       *     addHistoryItem(new EditCommand("Cut Sequences",
+                                      EditCommand.CUT,
+                                      cut,
+                                      sg.getStartRes(),
+                                      sg.getEndRes()-sg.getStartRes()+1,
+                                      viewport.alignment));
+
+       */
+      /** then
+       *        addHistoryItem(new EditCommand(
+               "Add sequences",
+               EditCommand.PASTE,
+               sequences,
+               0,
+               alignment.getWidth(),
+               alignment)
+              );
+
+       */
       oldstring = command.seqs[i].getSequenceAsString();
       tmp = new StringBuffer(oldstring.substring(0, start));
       tmp.append(command.string[i]);