//
//
//
//
// $Revision$
//
using System;
using System.Windows.Forms;
namespace ICSharpCode.TextEditor.Actions
{
///
/// To define a new key for the textarea, you must write a class which
/// implements this interface.
///
public interface IEditAction
{
///
/// An array of keys on which this edit action occurs.
///
Keys[] Keys {
get;
set;
}
///
/// When the key which is defined per XML is pressed, this method will be launched.
///
void Execute(TextArea textArea);
}
///
/// To define a new key for the textarea, you must write a class which
/// implements this interface.
///
public abstract class AbstractEditAction : IEditAction
{
Keys[] keys = null;
///
/// An array of keys on which this edit action occurs.
///
public Keys[] Keys {
get {
return keys;
}
set {
keys = value;
}
}
///
/// When the key which is defined per XML is pressed, this method will be launched.
///
public abstract void Execute(TextArea textArea);
}
}