Vixen
feb85697

Editor · guide

Documents and views

Opening an asset is two registrations — a DocumentKind with IDocumentHost says which files and how a document opens, a DocumentView with IWorkspace says what shows it — joined by the document's type and held together by a pairing test.

Edit this page on GitHub

Documents

Next

  • The editor shell — The window the editor is made of, and the command registry every part of it is a view over.
  • Writing an editor plugin — What a plugin can contribute to the editor, how it registers, and how everything it added is taken back out when it unloads.
  • Documents, dirty state and save — A document below the editor — dirty, name and location as signals, save and revert answered through the command route by the nearest panel that hosts one, and a window title that follows both.
  • Edits made outside the editor — What happens when a file the editor has open is changed by something else, and why the editor's own saves do not count.