aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Intellisense/NamespaceCompletionItem.cs
blob: d5c8db38a4dc866e991094679cf5cc3cb82d93b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27<
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;

[assembly: AssemblyTitle("Tango - Machine Studio Logging Module")]
[assembly: AssemblyVersion("2.0.18.1737")]

[assembly: ComVisible(false)]

[assembly:ThemeInfo(
    ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
                             //(used if a resource is not found in the page,
                             // or application resource dictionaries)
    ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
                                      //(used if a resource is not found in the page,
                                      // app, or any theme specific resource dictionaries)
)]
span class="s">"namespace.png"); public override string Text => Name; public override CompletionItemPopupControl PopupControl => new NamespaceCompletionItemPopup(); public override BitmapSource Image => image; public String Name { get; set; } public String Assembly { get; set; } public override void Complete(ScriptEditor editor) { var line = editor.GetCurrentLine(); editor.Document.Replace(line, "using " + Name); } } }