Class EmbeddedFileEditorManager
Repository embedded editor manager
Inheritance
System.Object
EmbeddedFileEditorManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.Framework.Repository.Editor
Assembly: Simplic.Framework.Repository.dll
Syntax
public class EmbeddedFileEditorManager
Methods
| Improve this Doc View SourceOpenFile(RepositoryFileInfo)
Open a file in a new editor
Declaration
public static void OpenFile(RepositoryFileInfo file)
Parameters
Type | Name | Description |
---|---|---|
RepositoryFileInfo | file | File to edit |
RegisterEditorFactory(String, IEmbeddedFileEditorFactory)
Register a new editor factory for a file exteion. Updates the editor for an extension if it is already existing
Declaration
public static void RegisterEditorFactory(string extension, IEmbeddedFileEditorFactory factory)
Parameters
Type | Name | Description |
---|---|---|
System.String | extension | Extension to open the editor for |
IEmbeddedFileEditorFactory | factory | Factory which create the new editor |
UnregisterEditorFactory(String)
Remove/Unregister an editor for a file extension. If there is no extension registered, nothing will be done.
Declaration
public static void UnregisterEditorFactory(string extension)
Parameters
Type | Name | Description |
---|---|---|
System.String | extension | Extension to unregister the editor for |