Mini SQL Query Extensibility Documentation
FileEditorResolverService Class
NamespacesMiniSqlQuery.CoreFileEditorResolverService
Given a file name or extention the service will work out the most appropriate editor to use.
Declaration Syntax
C#Visual BasicVisual C++
public class FileEditorResolverService : IFileEditorResolver
Public Class FileEditorResolverService _
	Implements IFileEditorResolver
public ref class FileEditorResolverService : IFileEditorResolver
Members
All MembersConstructorsMethods



IconMemberDescription
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.)
Remarks
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
Inheritance Hierarchy
Object
FileEditorResolverService

Assembly: MiniSqlQuery.Core (Module: MiniSqlQuery.Core) Version: 1.0.0.0 (1.0.0.0)