Code Coverage Statistics for Source File

c:\Tools\SD3\src\Libraries\ICSharpCode.TextEditor\Project\Src\Actions\IEditAction.cs

Sequence Point Coverage
N/A
0 of 0
Branch Coverage
N/A
0 of 0
Lines
58
Highlight: Uncovered Code Covered Code
L V Source
1
// <file>
2
//     <copyright see="prj:///doc/copyright.txt"/>
3
//     <license see="prj:///doc/license.txt"/>
4
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
5
//     <version>$Revision: 1965 $</version>
6
// </file>
7
8
using System;
9
using System.Windows.Forms;
10
11
namespace ICSharpCode.TextEditor.Actions
12
{
13
	/// <summary>
14
	/// To define a new key for the textarea, you must write a class which
15
	/// implements this interface.
16
	/// </summary>
17
	public interface IEditAction
18
	{
19
		/// <value>
20
		/// An array of keys on which this edit action occurs.
21
		/// </value>
22
		Keys[] Keys {
23
			get;
24
			set;
25
		}
26
		
27
		/// <remarks>
28
		/// When the key which is defined per XML is pressed, this method will be launched.
29
		/// </remarks>
30
		void Execute(TextArea textArea);
31
	}
32
	
33
	/// <summary>
34
	/// To define a new key for the textarea, you must write a class which
35
	/// implements this interface.
36
	/// </summary>
37
	public abstract class AbstractEditAction : IEditAction
38
	{
39
		Keys[] keys = null;
40
		
41
		/// <value>
42
		/// An array of keys on which this edit action occurs.
43
		/// </value>
44
		public Keys[] Keys {
45
			get {
46
				return keys;
47
			}
48
			set {
49
				keys = value;
50
			}
51
		}
52
		
53
		/// <remarks>
54
		/// When the key which is defined per XML is pressed, this method will be launched.
55
		/// </remarks>
56
		public abstract void Execute(TextArea textArea);
57
	}		
58
}