Vixen
feb85697
csharp
public sealed class DocumentHost

The project's IDocumentHost: a name and extension index over the registered kinds.

Read the guide page for this →

Remarks

⚠ Was AssetEditorRegistry, in Vixen.Editor.AssetEditors, until #1294 — and every remark below that is about registration was written there, for the reasons it gives. It is here now because nothing in it ever needed an element.

Fields and properties (2)

  • public int Count

    How many kinds are registered.

  • public IReadOnlyCollection<DocumentKind> Kinds

    Everything registered, in no particular order.

Events (1)

  • public Action<EditorDocument>? Opened

    Raised once for each document this host opens, after it is fully built.

Methods (5)

  • public DocumentHost(EditorProject project)

    A host over a project, with nothing registered.

  • public IDisposable Add(DocumentKind kind)
  • public bool TryGetForFile(string path, out DocumentKind? kind)

    Finds the kind for a file.

  • public bool TryGetByName(string name, out DocumentKind? kind)

    Finds a kind by name.

  • public bool TryOpen(AssetId asset, out EditorDocument? opened)

Used by (14)

  • AssetTabsVixen.Editor.App
  • AuthoringTestsVixen.Editor.AssetEditors.Tests
  • DocumentHostTestsVixen.Editor.AssetEditors.Tests
  • EditorApplicationVixen.Editor.App
  • LayerStackPanelTestsVixen.Editor.Texturing.Tests
  • MilestoneE5TestsVixen.Editor.App.Tests
  • RemovalVixen.Editor.Core
  • ShaderGraphSurfaceTestsVixen.Editor.App.Tests
  • SmartMaterialShelfTestsVixen.Editor.Texturing.Tests
  • StandardEditorsVixen.Editor.AssetEditors
  • TextureGraphPanelTestsVixen.Editor.Texturing.Tests
  • TexturingClaimTestsVixen.Editor.Texturing.Tests
  • TexturingCollectionTestsVixen.Editor.Texturing.Tests
  • TexturingFixtureVixen.Editor.Texturing.Tests