git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
50ea78c
)
bugfix todo for the 'edit sequence' command
author
jprocter
<Jim Procter>
Tue, 26 Aug 2008 09:38:43 +0000
(09:38 +0000)
committer
jprocter
<Jim Procter>
Tue, 26 Aug 2008 09:38:43 +0000
(09:38 +0000)
src/jalview/commands/EditCommand.java
patch
|
blob
|
history
diff --git
a/src/jalview/commands/EditCommand.java
b/src/jalview/commands/EditCommand.java
index
6740b7f
..
e859e3e
100644
(file)
--- a/
src/jalview/commands/EditCommand.java
+++ b/
src/jalview/commands/EditCommand.java
@@
-421,10
+421,31
@@
public class EditCommand
String oldstring;
int start = command.position;
int end = command.number;
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++)
{
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]);
oldstring = command.seqs[i].getSequenceAsString();
tmp = new StringBuffer(oldstring.substring(0, start));
tmp.append(command.string[i]);