| 0: | // ISdPluginAction.cs | |
| 1: | // Copyright (C) 2001 Mike Krueger | |
| 2: | // | |
| 3: | // This program is free software; you can redistribute it and/or modify | |
| 4: | // it under the terms of the GNU General Public License as published by | |
| 5: | // the Free Software Foundation; either version 2 of the License, or | |
| 6: | // (at your option) any later version. | |
| 7: | // | |
| 8: | // This program is distributed in the hope that it will be useful, | |
| 9: | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10: | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11: | // GNU General Public License for more details. | |
| 12: | // | |
| 13: | // You should have received a copy of the GNU General Public License | |
| 14: | // along with this program; if not, write to the Free Software | |
| 15: | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 16: | ||
| 17: | using SharpDevelop.Internal.Messages; | |
| 18: | using SharpDevelop.Gui; | |
| 19: | ||
| 20: | namespace SharpDevelop.Actions { | |
| 21: | ||
| 22: | /// <summary> | |
| 23: | /// To define a new menu command (or a plugin), you have to implement this interface. | |
| 24: | /// </summary> | |
| 25: | public interface ISdPlugin | |
| 26: | { | |
| 27: | ISdMessageHandler MessageHandler { | |
| 28: | get; | |
| 29: | } | |
| 30: | void Execute(ISdPluginExecutor executor); | |
| 31: | } | |
| 32: | ||
| 33: | /// <summary> | |
| 34: | /// To define a new menu command (or a plugin), you have to implement this interface. | |
| 35: | /// </summary> | |
| 36: | public interface ISdToggleablePlugin : ISdPlugin | |
| 37: | { | |
| 38: | bool IsEnabled(ISdPluginExecutor executor); | |
| 39: | } | |
| 40: | ||
| 41: | /// <summary> | |
| 42: | /// This is the interface for all Plugins to the outside world :) | |
| 43: | /// </summary> | |
| 44: | public interface ISdPluginExecutor | |
| 45: | { | |
| 46: | MainWindow Main { | |
| 47: | get; | |
| 48: | } | |
| 49: | } | |
| 50: | ||
| 51: | } |
This page was automatically generated by SharpDevelop.