Index: Core/Gui/src/Core.Gui/Plugin/PluginBase.cs
===================================================================
diff -u -r434415295de74c310ce6d3cdd0100c28838cf9ea -r60ca0bf8a8ced423b04351c29ed2b4522daa50e8
--- Core/Gui/src/Core.Gui/Plugin/PluginBase.cs (.../PluginBase.cs) (revision 434415295de74c310ce6d3cdd0100c28838cf9ea)
+++ Core/Gui/src/Core.Gui/Plugin/PluginBase.cs (.../PluginBase.cs) (revision 60ca0bf8a8ced423b04351c29ed2b4522daa50e8)
@@ -50,6 +50,14 @@
public virtual void Deactivate() {}
///
+ /// Returns all instances provided by this plug-in.
+ ///
+ public virtual IEnumerable GetStateInfos()
+ {
+ yield break;
+ }
+
+ ///
/// Returns all instances provided by this plug-in.
///
public virtual IEnumerable GetImportInfos()
Index: Core/Gui/test/Core.Gui.Test/Plugin/PluginBaseTest.cs
===================================================================
diff -u -r781a97409ffc49e5b666a7856f633f46178056df -r60ca0bf8a8ced423b04351c29ed2b4522daa50e8
--- Core/Gui/test/Core.Gui.Test/Plugin/PluginBaseTest.cs (.../PluginBaseTest.cs) (revision 781a97409ffc49e5b666a7856f633f46178056df)
+++ Core/Gui/test/Core.Gui.Test/Plugin/PluginBaseTest.cs (.../PluginBaseTest.cs) (revision 60ca0bf8a8ced423b04351c29ed2b4522daa50e8)
@@ -93,6 +93,20 @@
}
[Test]
+ public void GetStateInfos_ReturnsEmpty()
+ {
+ // Setup
+ using (var plugin = new SimplePlugin())
+ {
+ // Call
+ IEnumerable infos = plugin.GetStateInfos();
+
+ // Assert
+ CollectionAssert.IsEmpty(infos);
+ }
+ }
+
+ [Test]
public void GetPropertyInfos_ReturnsEmpty()
{
// Setup