added some development tools
[windows-sources.git] / developer / VSSDK / Samples / Ook_Language_Integration / C# / Intellisense / QuickInfoControllerProvider.cs
blob2c6c47c7637271b728e35434f9340adee5aa72cd
1 //***************************************************************************
2 //
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 // This code is licensed under the Visual Studio SDK license terms.
5 // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
6 // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
7 // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
8 // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
9 //
10 //***************************************************************************
12 using System.Collections.Generic;
13 using System.ComponentModel.Composition;
14 using Microsoft.VisualStudio.Language.Intellisense;
15 using Microsoft.VisualStudio.Text;
16 using Microsoft.VisualStudio.Text.Editor;
17 using Microsoft.VisualStudio.Utilities;
19 namespace VSLTK.Intellisense
21 #region IIntellisenseControllerProvider
23 [Export(typeof(IIntellisenseControllerProvider))]
24 [Name("Template QuickInfo Controller")]
25 [ContentType("text")]
26 internal class TemplateQuickInfoControllerProvider : IIntellisenseControllerProvider
28 #region Asset Imports
30 [Import]
31 internal IQuickInfoBroker QuickInfoBroker { get; set; }
33 #endregion
35 #region IIntellisenseControllerFactory Members
37 public IIntellisenseController TryCreateIntellisenseController(ITextView textView,
38 IList<ITextBuffer> subjectBuffers)
40 return new TemplateQuickInfoController(textView, subjectBuffers, this);
43 #endregion
47 #endregion