blob: eef5914996b54d286aead8d84e1d9291bb5f7d5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
namespace Microsoft.VisualStudio.Text.Editor.Commanding
{
/// <summary>
/// Provides a <see cref="ICommandingTextBufferResolver"/> for a given
/// <see cref="ITextView"/> and content type.
/// </summary>
/// <remarks>This is a MEF component and should be exported as
///
/// Export(typeof(ICommandingTextBufferResolverProvider))]
/// [ContentType("MyContentType")]
/// internal class MyBufferResolverProvider : ICommandingTextBufferResolverProvider
/// </remarks>
public interface ICommandingTextBufferResolverProvider
{
/// <summary>
/// Creates a <see cref="ICommandingTextBufferResolver"/> for a given
/// <see cref="ITextView"/>.
/// </summary>
/// <param name="textView">A <see cref="ITextView"/> to create a text buffer resolver for.</param>
/// <returns>A new instance of <see cref="ICommandingTextBufferResolver"/>.</returns>
ICommandingTextBufferResolver CreateResolver(ITextView textView);
}
}
|