~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/Scripting/Test/Utils/FakeCaret.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using System;
 
5
using ICSharpCode.NRefactory;
 
6
using ICSharpCode.SharpDevelop.Editor;
 
7
 
 
8
namespace ICSharpCode.Scripting.Tests.Utils
 
9
{
 
10
        public class FakeCaret : ITextEditorCaret
 
11
        {
 
12
                public event EventHandler PositionChanged;
 
13
                
 
14
                protected virtual void OnPositionChanged(EventArgs e)
 
15
                {
 
16
                        if (PositionChanged != null) {
 
17
                                PositionChanged(this, e);
 
18
                        }
 
19
                }
 
20
                
 
21
                public int Offset { get; set; }
 
22
                public int Line { get; set; }
 
23
                
 
24
                public int Column {
 
25
                        get {
 
26
                                throw new NotImplementedException();
 
27
                        }
 
28
                        set {
 
29
                                throw new NotImplementedException();
 
30
                        }
 
31
                }
 
32
                
 
33
                public Location Position {
 
34
                        get {
 
35
                                throw new NotImplementedException();
 
36
                        }
 
37
                        set {
 
38
                                throw new NotImplementedException();
 
39
                        }
 
40
                }
 
41
        }
 
42
}