/*
* If the cut affects all sequences, warn, remove highlighted columns
*/
- if (sg.getSize() == viewport.getAlignment().getHeight())
+
+ boolean isEntireAlignWidth = (((sg.getEndRes() - sg.getStartRes()) + 1) == viewport
+ .getAlignment().getWidth()) ? true : false;
+ if (sg.getSize() == viewport.getAlignment().getHeight()
+ && isEntireAlignWidth)
{
int confirm = JOptionPane.showConfirmDialog(this,
MessageManager.getString("warn.delete_all"), // $NON-NLS-1$
viewport.setSelectionGroup(null);
viewport.sendSelection();
viewport.getAlignment().deleteGroup(sg);
+ viewport.getColumnSelection().clear();
viewport.firePropertyChange("alignment", null, viewport.getAlignment()
.getSequences());
}
}
+
/**
* DOCUMENT ME!
*