+ editLastRes = startres;
+ seqCanvas.repaint();
+ }
+
+ /**
+ * A helper method that performs the requested editing to insert or delete
+ * gaps (if possible). Answers true if the edit was successful, false if could
+ * only be performed in part or not at all. Failure may occur in 'locked edit'
+ * mode, when an insertion requires a matching gapped position (or column) to
+ * delete, and deletion requires a gapped position (or column) to remove.
+ *
+ * @param insertGap
+ * @param editSeq
+ * @param startres
+ * @param fixedRight
+ * @param fixedColumns
+ * @param sg
+ * @return
+ */
+ protected boolean doEditSequence(boolean insertGap, boolean editSeq,
+ final int startres, int fixedRight, boolean fixedColumns,
+ SequenceGroup sg)
+ {
+ final SequenceI seq = av.getAlignment().getSequenceAt(editStartSeq);
+ SequenceI[] seqs = new SequenceI[] { seq };
+
+ if (groupEditing)