git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Formatting
[jalview.git]
/
src
/
jalview
/
commands
/
RemoveGapColCommand.java
diff --git
a/src/jalview/commands/RemoveGapColCommand.java
b/src/jalview/commands/RemoveGapColCommand.java
index
d3aebdb
..
1e9b832
100644
(file)
--- a/
src/jalview/commands/RemoveGapColCommand.java
+++ b/
src/jalview/commands/RemoveGapColCommand.java
@@
-1,7
+1,8
@@
package jalview.commands;
\r
package jalview.commands;
\r
- /*
\r
+
\r
+/*
\r
* Jalview - A Sequence Alignment Editor and Viewer
\r
* Jalview - A Sequence Alignment Editor and Viewer
\r
- * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
+ * Copyright (C) 2007 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
* This program is free software; you can redistribute it and/or
\r
* modify it under the terms of the GNU General Public License
\r
@@
-20,7
+21,8
@@
package jalview.commands;
\r
import jalview.datamodel.*;
\r
\r
\r
import jalview.datamodel.*;
\r
\r
-public class RemoveGapColCommand extends EditCommand
\r
+public class RemoveGapColCommand
\r
+ extends EditCommand
\r
{
\r
int columnsDeleted;
\r
public RemoveGapColCommand(String description,
\r
{
\r
int columnsDeleted;
\r
public RemoveGapColCommand(String description,
\r
@@
-32,7
+34,7
@@
public class RemoveGapColCommand extends EditCommand
int j, jSize = seqs.length;
\r
\r
int startCol = -1, endCol = -1;
\r
int j, jSize = seqs.length;
\r
\r
int startCol = -1, endCol = -1;
\r
- columnsDeleted=0;
\r
+ columnsDeleted = 0;
\r
\r
edits = new Edit[0];
\r
\r
\r
edits = new Edit[0];
\r
\r
@@
-48,7
+50,9
@@
public class RemoveGapColCommand extends EditCommand
if (!jalview.util.Comparison.isGap(seqs[j].getCharAt(i)))
\r
{
\r
if (delete)
\r
if (!jalview.util.Comparison.isGap(seqs[j].getCharAt(i)))
\r
{
\r
if (delete)
\r
+ {
\r
endCol = i;
\r
endCol = i;
\r
+ }
\r
\r
delete = false;
\r
break;
\r
\r
delete = false;
\r
break;
\r
@@
-77,19
+81,18
@@
public class RemoveGapColCommand extends EditCommand
\r
if (delete && startCol > -1)
\r
{
\r
\r
if (delete && startCol > -1)
\r
{
\r
- //This is for empty columns at the
\r
- //end of the alignment
\r
+ //This is for empty columns at the
\r
+ //end of the alignment
\r
\r
this.appendEdit(DELETE_GAP, seqs,
\r
\r
this.appendEdit(DELETE_GAP, seqs,
\r
- startCol - columnsDeleted,
\r
- end - startCol +1,
\r
- al,
\r
- false);
\r
+ startCol - columnsDeleted,
\r
+ end - startCol + 1,
\r
+ al,
\r
+ false);
\r
\r
\r
- columnsDeleted += (end - startCol +1);
\r
+ columnsDeleted += (end - startCol + 1);
\r
}
\r
\r
}
\r
\r
-
\r
performEdit(0);
\r
}
\r
\r
performEdit(0);
\r
}
\r
\r