Ejemplo n.º 1
0
 public ScriptingConsole(IScriptingConsoleTextEditor textEditor, ScriptingConsoleUnreadLines unreadLines)
 {
     this.textEditor  = textEditor;
     this.unreadLines = unreadLines;
     this.ScrollToEndWhenTextWritten = true;
     textEditor.PreviewKeyDown      += ProcessPreviewKeyDown;
 }
Ejemplo n.º 2
0
        void AssertSelectionsAreEqual(SimpleSelection expectedSelection, IScriptingConsoleTextEditor consoleTextEditor)
        {
            int             selectionLength = consoleTextEditor.SelectionStart + consoleTextEditor.SelectionLength;
            SimpleSelection actualSelection = new SimpleSelection(consoleTextEditor.SelectionStart, selectionLength);

            Assert.AreEqual(expectedSelection, actualSelection);
        }
Ejemplo n.º 3
0
		public ScriptingConsole(IScriptingConsoleTextEditor textEditor, ScriptingConsoleUnreadLines unreadLines)
		{
			this.textEditor = textEditor;
			this.unreadLines = unreadLines;
			this.ScrollToEndWhenTextWritten = true;
			textEditor.PreviewKeyDown += ProcessPreviewKeyDown;
		}
Ejemplo n.º 4
0
        void AssertSelectionsAreEqual(Selection expectedSelection, IScriptingConsoleTextEditor consoleTextEditor)
        {
            int       selectionEnd    = consoleTextEditor.SelectionStart + consoleTextEditor.SelectionLength;
            Selection actualSelection = Selection.Create(avalonEditTextEditor.TextArea, consoleTextEditor.SelectionStart, selectionEnd);

            Assert.AreEqual(expectedSelection, actualSelection);
        }
Ejemplo n.º 5
0
 public ScriptingConsole(IScriptingConsoleTextEditor textEditor)
     : this(textEditor, new ScriptingConsoleUnreadLines())
 {
 }
		public DerivedRubyConsoleHost(IScriptingConsoleTextEditor textEditor)
			: base(textEditor, new FakeControlDispatcher())
		{
		}
 public ScriptingConsoleOutputStream(IScriptingConsoleTextEditor textEditor, IControlDispatcher dispatcher)
 {
     this.textEditor = textEditor;
     this.dispatcher = dispatcher;
 }
Ejemplo n.º 8
0
 public PackageManagementConsole(IScriptingConsoleTextEditor textEditor, IControlDispatcher dispatcher)
     : this(new ScriptingConsole(textEditor), dispatcher)
 {
 }
Ejemplo n.º 9
0
		protected override IScriptingConsoleHost CreateConsoleHost(IScriptingConsoleTextEditor consoleTextEditor, 
			IControlDispatcher dispatcher)
		{
			return new PythonConsoleHost(consoleTextEditor, dispatcher);
		}
Ejemplo n.º 10
0
		public RubyConsoleHost(IScriptingConsoleTextEditor textEditor, IControlDispatcher dispatcher)
		{
			this.textEditor = textEditor;
			rubyConsole = new RubyConsole(textEditor, dispatcher);
		}
		TestableScriptingConsole(IScriptingConsoleTextEditor consoleTextEditor, ScriptingConsoleUnreadLines unreadLines)
			: base(consoleTextEditor, unreadLines)
		{
			FakeConsoleTextEditor = (FakeConsoleTextEditor)consoleTextEditor;
			UnreadLines = unreadLines;
		}
Ejemplo n.º 12
0
 public PythonConsole(IScriptingConsoleTextEditor textEditor, IControlDispatcher dispatcher)
     : this(new ScriptingConsole(textEditor), dispatcher)
 {
     this.textEditor = textEditor;
 }
Ejemplo n.º 13
0
        public ICompletionData[] GenerateCompletionData(IScriptingConsoleTextEditor textEditor)
        {
            string line = textEditor.GetLine(textEditor.TotalLines - 1);

            return(GenerateCompletionData(line));
        }
 public DerivedRubyConsoleHost(IScriptingConsoleTextEditor textEditor)
     : base(textEditor, new FakeControlDispatcher())
 {
 }
Ejemplo n.º 15
0
		public PythonConsoleHost(IScriptingConsoleTextEditor textEditor, IControlDispatcher dispatcher)
		{
			pythonConsole = new PythonConsole(textEditor, dispatcher);
		}
Ejemplo n.º 16
0
 public PythonConsoleHost(IScriptingConsoleTextEditor textEditor, IControlDispatcher dispatcher)
 {
     pythonConsole = new PythonConsole(textEditor, dispatcher);
 }
Ejemplo n.º 17
0
 public ScriptingConsole(IScriptingConsoleTextEditor textEditor, ScriptingConsoleUnreadLines unreadLines)
 {
     this.textEditor            = textEditor;
     this.unreadLines           = unreadLines;
     textEditor.PreviewKeyDown += ProcessPreviewKeyDown;
 }
		public ICompletionData[] GenerateCompletionData(IScriptingConsoleTextEditor textEditor)
 		{
			string line = textEditor.GetLine(textEditor.TotalLines - 1);
			return GenerateCompletionData(line);
 		}
		void AssertSelectionsAreEqual(SimpleSelection expectedSelection, IScriptingConsoleTextEditor consoleTextEditor)
		{
			int selectionLength = consoleTextEditor.SelectionStart + consoleTextEditor.SelectionLength;
			SimpleSelection actualSelection = new SimpleSelection(consoleTextEditor.SelectionStart, selectionLength);
			Assert.AreEqual(expectedSelection, actualSelection);
		}
Ejemplo n.º 20
0
 public RubyConsoleHost(IScriptingConsoleTextEditor textEditor, IControlDispatcher dispatcher)
 {
     this.textEditor = textEditor;
     rubyConsole     = new RubyConsole(textEditor, dispatcher);
 }
Ejemplo n.º 21
0
		public ScriptingConsole(IScriptingConsoleTextEditor textEditor, ScriptingConsoleUnreadLines unreadLines)
		{
			this.textEditor = textEditor;
			this.unreadLines = unreadLines;
			textEditor.PreviewKeyDown += ProcessPreviewKeyDown;
		}
Ejemplo n.º 22
0
 protected abstract IScriptingConsoleHost CreateConsoleHost(
     IScriptingConsoleTextEditor consoleTextEditor,
     IControlDispatcher dispatcher);
Ejemplo n.º 23
0
		public ScriptingConsole(IScriptingConsoleTextEditor textEditor)
			: this(textEditor, new ScriptingConsoleUnreadLines())
		{
		}
Ejemplo n.º 24
0
 protected override IScriptingConsoleHost CreateConsoleHost(IScriptingConsoleTextEditor consoleTextEditor,
                                                            IControlDispatcher dispatcher)
 {
     return(new PythonConsoleHost(consoleTextEditor, dispatcher));
 }
Ejemplo n.º 25
0
		protected abstract IScriptingConsoleHost CreateConsoleHost(
			IScriptingConsoleTextEditor consoleTextEditor,
			IControlDispatcher dispatcher);
 public PackageManagementConsole(IScriptingConsoleTextEditor textEditor, IControlDispatcher dispatcher)
     : this(new ScriptingConsole(textEditor), dispatcher)
 {
 }
Ejemplo n.º 27
0
		public PythonConsole(IScriptingConsoleTextEditor textEditor, IControlDispatcher dispatcher)
			: this(new ScriptingConsole(textEditor), dispatcher)
		{
			this.textEditor = textEditor;
		}
		void AssertSelectionsAreEqual(Selection expectedSelection, IScriptingConsoleTextEditor consoleTextEditor)
		{
			int selectionEnd = consoleTextEditor.SelectionStart + consoleTextEditor.SelectionLength;
			Selection actualSelection = Selection.Create(avalonEditTextEditor.TextArea, consoleTextEditor.SelectionStart, selectionEnd);
			Assert.AreEqual(expectedSelection, actualSelection);
		}
		public ScriptingConsoleOutputStream(IScriptingConsoleTextEditor textEditor, IControlDispatcher dispatcher)
		{
			this.textEditor = textEditor;
			this.dispatcher = dispatcher;
		}
 TestableScriptingConsole(IScriptingConsoleTextEditor consoleTextEditor, ScriptingConsoleUnreadLines unreadLines)
     : base(consoleTextEditor, unreadLines)
 {
     FakeConsoleTextEditor = (FakeConsoleTextEditor)consoleTextEditor;
     UnreadLines           = unreadLines;
 }