{
viewport = ap.av;
alignPanel = ap;
+ alignPanel.alignFrame = this;
addAlignmentPanel(ap);
init();
}
*/
void updateEditMenuBar()
{
+
if (historyList.size() > 0)
{
undoMenuItem.setEnabled(true);
-
CommandI command = (CommandI) historyList.peek();
undoMenuItem.setText("Undo " + command.getDescription());
}
redoList.push(command);
command.undoCommand();
- // HistoryItem nh,hi = (HistoryItem) historyList.pop();
- // redoList.push(nh=new HistoryItem(hi.getDescription(), viewport.alignment,
- // HistoryItem.HIDE));
- // 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);
+ 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,
- // HistoryItem.HIDE));
- // if (hi.alColumnChanges!=null)
- // nh.alColumnChanges=hi.alColumnChanges.getInverse();
- // restoreHistoryItem(hi);
updateEditMenuBar();
viewport.firePropertyChange("alignment", null, viewport.getAlignment().getSequences());
}
*/
public void removeGappedColumnMenuItem_actionPerformed(ActionEvent e)
{
- int start = 0, end = viewport.alignment.getWidth();
+ int start = 0, end = viewport.alignment.getWidth()-1;
SequenceI[] seqs;
if (viewport.getSelectionGroup() != null)
*/
public void removeAllGapsMenuItem_actionPerformed(ActionEvent e)
{
- int start = 0, end = viewport.alignment.getWidth();
+ int start = 0, end = viewport.alignment.getWidth()-1;
SequenceI[] seqs;
if (viewport.getSelectionGroup() != null)