/** * Hook to create an undo change for the given undo edit and content stamp. * This hook gets called while performing the change to construct the * corresponding undo change object. * * @param edit the {@link UndoEdit} to create an undo change for * @param stampToRestore the content stamp to restore when the undo * edit is executed. * * @return the undo change or <code>null</code> if no undo change can * be created. Returning <code>null</code> results in the fact that * the whole change tree can't be undone. So returning <code>null</code> * is only recommended if an exception occurred during creating the * undo change. */ protected Change createUndoChange(UndoEdit edit, ContentStamp stampToRestore) { return new UndoTextFileChange(getName(), fFile, edit, stampToRestore, fSaveMode); }
/** * Hook to create an undo change for the given undo edit and content stamp. * This hook gets called while performing the change to construct the * corresponding undo change object. * * @param edit the {@link UndoEdit} to create an undo change for * @param stampToRestore the content stamp to restore when the undo * edit is executed. * * @return the undo change or <code>null</code> if no undo change can * be created. Returning <code>null</code> results in the fact that * the whole change tree can't be undone. So returning <code>null</code> * is only recommended if an exception occurred during creating the * undo change. */ protected Change createUndoChange(UndoEdit edit, ContentStamp stampToRestore) { return new UndoTextFileChange(getName(), fFile, edit, stampToRestore, fSaveMode); }
/** * Hook to create an undo change for the given undo edit and content stamp. * This hook gets called while performing the change to construct the * corresponding undo change object. * * @param edit the {@link UndoEdit} to create an undo change for * @param stampToRestore the content stamp to restore when the undo * edit is executed. * * @return the undo change or <code>null</code> if no undo change can * be created. Returning <code>null</code> results in the fact that * the whole change tree can't be undone. So returning <code>null</code> * is only recommended if an exception occurred during creating the * undo change. */ protected Change createUndoChange(UndoEdit edit, ContentStamp stampToRestore) { return new UndoTextFileChange(getName(), fFile, edit, stampToRestore, fSaveMode); }