using System.Collections.Generic; using System.Drawing; using System.Reflection; using DelftTools.Shell.Core; using DelftTools.Shell.Core.Dao; using Mono.Addins; namespace DeltaShell.Plugins.CommonTools { /// /// Common tool plugins /// [Extension(typeof(IPlugin))] public class CommonToolsApplicationPlugin : ApplicationPlugin, IDataAccessListenersProvider { /// /// Gets the name of the plugin /// Derived from ApplicationPlugin.Name /// public override string Name { get { return "CommonToolsPlugin"; } } /// /// Gets the display name from the resource /// Derived from ApplicationPlugin.DisplayName /// public override string DisplayName { get { return Properties.Resources.CommonToolsApplicationPlugin_DisplayName_Delta_Shell_Common_Tools_Plugin; } } /// /// Gets the description from the resource /// Derived from ApplicationPlugin.Description /// public override string Description { get { return Properties.Resources.CommonToolsApplicationPlugin_Description; } } /// /// Gets the version from the assembly. /// Derived from ApplicationPlugin.Version /// public override string Version { get { return Assembly.GetExecutingAssembly().GetName().Version.ToString(); } } /// /// Image for displaying in gui. Default format 32x32 bitmap. /// Derived from ApplicationPlugin.Image /// public override Image Image { get { return new Bitmap(32, 32); } } public IEnumerable CreateDataAccessListeners() { yield return new CommonToolsDataAccessListener(); } } }