* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
-import jalview.datamodel.*;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.SequenceI;
public class RemoveGapsCommand extends EditCommand
{
int j, jSize;
- edits = new Edit[0];
+ clearEdits();
boolean delete = true;
char[] sequence;
if (!delete && startCol > -1)
{
- this.appendEdit(DELETE_GAP, new SequenceI[]
+ this.appendEdit(Action.DELETE_GAP, new SequenceI[]
{ seqs[s] }, start + startCol - deletedCols, endCol - startCol,
al, false, null);
}
if (delete && startCol > -1)
{
- this.appendEdit(DELETE_GAP, new SequenceI[]
+ this.appendEdit(Action.DELETE_GAP, new SequenceI[]
{ seqs[s] }, start + startCol - deletedCols, jSize - startCol, al,
false, null);
}