Index: src/Common/DelftTools.Shell.Core/ApplicationPlugin.cs
===================================================================
diff -u -r6b59ea277522a35859f061196c54d808249c4fb0 -r5fc71a385897af92ccb092f2f969b5709afab85a
--- src/Common/DelftTools.Shell.Core/ApplicationPlugin.cs (.../ApplicationPlugin.cs) (revision 6b59ea277522a35859f061196c54d808249c4fb0)
+++ src/Common/DelftTools.Shell.Core/ApplicationPlugin.cs (.../ApplicationPlugin.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a)
@@ -12,6 +12,11 @@
public abstract class ApplicationPlugin : IPlugin
{
///
+ /// Gets or sets the application.
+ /// The application.
+ public virtual IApplication Application { get; set; }
+
+ ///
/// Gets the name of the plugin.
///
public abstract string Name { get; }
@@ -32,40 +37,35 @@
public abstract string Version { get; }
///
- /// Activates the plugin.
- ///
- public virtual void Activate()
- {
- IsActive = true;
- }
-
- ///
- /// Deactivates the plugin.
- ///
- public virtual void Deactivate()
- {
- IsActive = false;
- }
-
- ///
/// Gets a value indicating whether the plugin is active.
/// true if this instance is active; otherwise, false.
public virtual bool IsActive { get; protected set; }
///
/// Image for displaying in gui. Default format 32x32 bitmap or scalable.
///
- public virtual Image Image { get { return null; } }
+ public virtual Image Image
+ {
+ get
+ {
+ return null;
+ }
+ }
///
/// ResourceManger of plugin. Default Properties.Resources.
///
public virtual ResourceManager Resources { get; set; }
- ///
- /// Gets or sets the application.
- /// The application.
- public virtual IApplication Application { get; set; }
+ // TODO: check if it is used, otherwise remove
+ public virtual string[] DependentPluginNames
+ {
+ get
+ {
+ return new string[]
+ {};
+ }
+ }
///
/// Provides information about data that can be created
@@ -91,10 +91,26 @@
yield break;
}
- // TODO: check if it is used, otherwise remove
- public virtual string[] DependentPluginNames { get { return new string[] { }; } }
+ ///
+ /// Activates the plugin.
+ ///
+ public virtual void Activate()
+ {
+ IsActive = true;
+ }
+ ///
+ /// Deactivates the plugin.
+ ///
+ public virtual void Deactivate()
+ {
+ IsActive = false;
+ }
+
// TODO: check if we can remove it
- public virtual IEnumerable GetPersistentAssemblies() { yield break; }
+ public virtual IEnumerable GetPersistentAssemblies()
+ {
+ yield break;
+ }
}
}
\ No newline at end of file