private void CleanupCurrentState()
 {
     if (this._currentState != null)
     {
         this._currentState.Cleanup();
         this._currentState = null;
     }
 }
 private void SetCurrentState(IEditorWindowState newState)
 {
     this._currentState         = newState;
     this._currentState.Context = this;
 }