public override void Run() { IViewContent content = WorkbenchSingleton.Workbench.ActiveViewContent; if (content != null && content.ContentName != null) { IXmlConvertable memento = null; if (content is IMementoCapable) { memento = ((IMementoCapable)content).CreateMemento(); } content.LoadFile(content.ContentName); if (memento != null) { ((IMementoCapable)content).SetMemento(memento); } } }