historyList.push(command);
redoList.clear();
updateEditMenuBar();
+
+ viewport.hasHiddenColumns = viewport.colSel.getHiddenColumns()!=null;
}
// if (hi.alColumnChanges!=null)
// nh.alColumnChanges = hi.alColumnChanges.getInverse();
// restoreHistoryItem(hi);
+ viewport.hasHiddenColumns = viewport.colSel.getHiddenColumns()!=null;
updateEditMenuBar();
viewport.firePropertyChange("alignment", null, viewport.getAlignment().getSequences());
}
CommandI command = (CommandI) redoList.pop();
historyList.push(command);
command.doCommand();
+ viewport.hasHiddenColumns = viewport.colSel.getHiddenColumns()!=null;
// HistoryItem nh,hi = (HistoryItem) redoList.pop();
// historyList.push(nh=new HistoryItem(hi.getDescription(), viewport.alignment,
TrimRegionCommand trimRegion;
-
if(trimLeft)
{
trimRegion = new TrimRegionCommand("Remove Left",
seqs,
column,
viewport.alignment,
- viewport.colSel);
-
- colSel.compensateForEdit(0, column);
-
- //AW edit.addShift(0,min);
- if (viewport.getSelectionGroup() != null)
- {
- viewport.getSelectionGroup().adjustForRemoveLeft(column);
- }
+ viewport.colSel,
+ viewport.selectionGroup);
}
else
{
- trimRegion = new TrimRegionCommand("Remove Left",
+ trimRegion = new TrimRegionCommand("Remove Right",
TrimRegionCommand.TRIM_RIGHT,
seqs,
column,
viewport.alignment,
- viewport.colSel);
- // TODO: delete hidden column entries in colSel to right of max
- // TODO: record hidden columns in history for undo.
- if (viewport.getSelectionGroup() != null)
- {
- viewport.getSelectionGroup().adjustForRemoveRight(column);
- }
+ viewport.colSel,
+ viewport.selectionGroup);
}
addHistoryItem(trimRegion);
AlignmentSorter.sortByTree(viewport.getAlignment(),
treePanel.getTree());
- addHistoryItem(new OrderCommand("Tree Sort", oldOrder, viewport.alignment));
+ addHistoryItem(new OrderCommand("Tree Sort",
+ oldOrder,
+ viewport.alignment));
alignPanel.repaint();