The editor should use Eclipse's IMemento framework. At a minimum the editor should restore to the tab that had focus when it was shutdown.