EditorContext.Constructor
Section titled “EditorContext.Constructor”
- Creates a passive editor context for one project.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Core
Scope: Editor
Declaration
Section titled “Declaration”public InnoEditor.Core.EditorContext.EditorContext(string projectDirectory, InnoEditor.Core.EditorKeyboardPolicy keyboard, string? initialLayoutDocument = null)Parameters
Section titled “Parameters”Parameter projectDirectory: The project root containing Assets and Library.
Parameter keyboard: The explicit immutable conventions selected by product composition.
Parameter initialLayoutDocument: An optional host-owned initial settings document, installed atomically only when editor.ini does not exist. Existing documents, including empty files, are preserved.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: The keyboard policy is null.
Exception T:System.ArgumentException: Thrown when projectDirectory is empty.
Exception T:System.IO.IOException: The current document cannot be read or its initial document cannot be installed.
Exception T:System.UnauthorizedAccessException: The caller cannot access or initialize the project settings document.