@Override
public void replaceSaveRoutine(IEditorPart editor,
ITutorialDocument tutorialDocument) {
if (!(editor instanceof OfficeEditor))
return;
OfficeEditor officeEditor = (OfficeEditor) editor;
IFrame frame = officeEditor.getFrame();
frame.addDispatchDelegate(GlobalCommands.SAVE,
new SaveDispatchDelegate(officeEditor, tutorialDocument));
frame.updateDispatches();
}