{// Save the presentation's state before disposing it
XMLMemento memento = XMLMemento
.createWriteRoot(IWorkbenchConstants.TAG_PRESENTATION);
memento.putString(IWorkbenchConstants.TAG_ID, getFactory().getId());
PresentationSerializer serializer = new PresentationSerializer(
getPresentableParts());
getPresentation().saveState(serializer, memento);
// Store the memento in savedPresentationState