manager.deleteInstruction(instr);
}
public void toggleEnabled(int row) {
AbstractInstruction instr = manager.getInstruction(row);
if (instr == null)
return;
if (instr.isEnabled()) {
if (JOptionPane.YES_OPTION != JOptionPane.showConfirmDialog(this,
getString("Confirm_Disable.Message"),
getString("Confirm_Disable.Title"),
JOptionPane.YES_NO_OPTION))
return;
}
AbstractInstruction newInstr = (AbstractInstruction) instr.clone();
newInstr.setEnabled(!instr.isEnabled());
manager.changeInstruction(instr, newInstr);
}