public void ShowCompletionWindow(ScriptingConsoleCompletionDataProvider completionDataProvider)
 {
     ICompletionData[] items = completionDataProvider.GenerateCompletionData(this);
     if (items.Length > 0)
     {
         ShowCompletionWindow(items);
     }
 }
		public void SetUpFixture()
		{			
			TextEditor textEditorControl = new TextEditor();
			textEditorControl.Text = ">>> __builtins__";
			ScriptingConsoleTextEditor textEditor = new ScriptingConsoleTextEditor(textEditorControl);
				
			memberProvider = new MockMemberProvider();
			memberProvider.SetMemberNames(new string[] {"a", "b", "c"});
			expectedCompletionItems = CreateCompletionItems(memberProvider.GetMemberNames("__builtins__"));
			
			provider = new ScriptingConsoleCompletionDataProvider(memberProvider);
			completionItems = provider.GenerateCompletionData(textEditor);
		}
		public void ShowCompletionWindow(ScriptingConsoleCompletionDataProvider completionDataProvider)
		{
			IsShowCompletionWindowCalled = true;
			IsCompletionWindowDisplayed = true;
			this.CompletionProviderPassedToShowCompletionWindow = completionDataProvider;
		}
Esempio n. 4
0
		void ShowCompletionWindow()
		{
			ScriptingConsoleCompletionDataProvider completionProvider = new ScriptingConsoleCompletionDataProvider(MemberProvider);
			textEditor.ShowCompletionWindow(completionProvider);
		}
Esempio n. 5
0
        void ShowCompletionWindow()
        {
            ScriptingConsoleCompletionDataProvider completionProvider = new ScriptingConsoleCompletionDataProvider(MemberProvider);

            textEditor.ShowCompletionWindow(completionProvider);
        }
		public void Init()
		{
			memberProvider = new MockMemberProvider();
			completionProvider = new ScriptingConsoleCompletionDataProvider(memberProvider);
		}
		public void ShowCompletionWindow(ScriptingConsoleCompletionDataProvider completionDataProvider)
		{
			ICompletionData[] items = completionDataProvider.GenerateCompletionData(this);
			if (items.Length > 0) {
				ShowCompletionWindow(items);
			}
		}