Table of Contents

Interface IEditorFactory

Namespace
Loehnert.Lisrt.Scripting.Editor
Assembly
Loehnert.Lisrt.Scripting.dll

Factory class for a project editor.

public interface IEditorFactory

Properties

ProjectItemType

Gets the type of the project item.

Type ProjectItemType { get; }

Property Value

Type

Methods

CanGetEditor(IProjectItem)

Gets an value indicating whether the IProjectItem can be opened with this factory.

bool CanGetEditor(IProjectItem projectItem)

Parameters

projectItem IProjectItem

Project item to check.

Returns

bool

True if the item can be opened with this editor.

Remarks

Usually depending on the extension of the Name.

GetEditor(IProjectItem, IScriptShell)

Gets the editor for the project item.

IProjectItemDocument GetEditor(IProjectItem projectItem, IScriptShell parentShell)

Parameters

projectItem IProjectItem

Project item.

parentShell IScriptShell

Shell which contains the editor.

Returns

IProjectItemDocument

A persisted document for editing the project item.