@Override public void redo() { super.redo(); // Redo the change. try { if (newValue != null) { entry.setField(field, newValue); } else { entry.clearField(field); } } catch (IllegalArgumentException ex) { LOGGER.info("Cannot perform redo", ex); } }
@Override public void undo() { super.undo(); // Revert the change. try { if (oldValue != null) { entry.setField(field, oldValue); } else { entry.clearField(field); } // this is the only exception explicitly thrown here } catch (IllegalArgumentException ex) { LOGGER.info("Cannot perform undo", ex); } }