Given a file name or extention the service will work out the most appropriate editor
to use.
| C# | Visual Basic | Visual C++ |
public class FileEditorResolverService : IFileEditorResolver
Public Class FileEditorResolverService _ Implements IFileEditorResolver
public ref class FileEditorResolverService : IFileEditorResolver
| All Members | Constructors | Methods | |||
| Icon | Member | Description |
|---|---|---|
| FileEditorResolverService(IApplicationServices) |
Initializes a new instance of the FileEditorResolverService class.
| |
| Equals(Object) |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetFileTypes()()() |
Gets the file types.
| |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Register(FileEditorDescriptor) | ||
| ResolveEditorInstance(String) |
Resolves the editor instance from the container based on the filename.
| |
| ResolveEditorNameByExtension(String) |
Works out the "name" of the editor to use based on the extention.
| |
| ToString()()() |
Returns a String that represents the current Object.
(Inherited from Object.) |
The editors need to be registered using the Register(FileEditorDescriptor) method.
Examples
CopyC#
IEditor editor = resolver.ResolveEditorInstance("c:\data.sql"); // will resolve to the SQL editor IEditor editor = resolver.ResolveEditorInstance("c:\foo.txt"); // will resolve to the basic text editor
| Object | |
| FileEditorResolverService | |