Author: mkrueger
Date: 2007-08-31 10:09:06 -0400 (Fri, 31 Aug 2007)
New Revision: 85120
Modified:
trunk/monodevelop/Extras/NUnit/ChangeLog
trunk/monodevelop/Extras/NUnit/Gui/NUnitOptionsPanel.cs
trunk/monodevelop/Extras/NUnit/Gui/UnitTestOptionsDialog.cs
Log:
* Gui/UnitTestOptionsDialog.cs, Gui/NUnitOptionsPanel.cs: Changes due
to new property infrastructure.
Modified: trunk/monodevelop/Extras/NUnit/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/NUnit/ChangeLog 2007-08-31 14:08:47 UTC (rev
85119)
+++ trunk/monodevelop/Extras/NUnit/ChangeLog 2007-08-31 14:09:06 UTC (rev
85120)
@@ -1,3 +1,8 @@
+2007-08-31 Mike Krüger <[EMAIL PROTECTED]>
+
+ * Gui/UnitTestOptionsDialog.cs, Gui/NUnitOptionsPanel.cs: Changes due
to new
+ property infrastructure.
+
2007-08-09 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelopNUnit.addin.xml: Removed the CommandService class.
Everything
Modified: trunk/monodevelop/Extras/NUnit/Gui/NUnitOptionsPanel.cs
===================================================================
--- trunk/monodevelop/Extras/NUnit/Gui/NUnitOptionsPanel.cs 2007-08-31
14:08:47 UTC (rev 85119)
+++ trunk/monodevelop/Extras/NUnit/Gui/NUnitOptionsPanel.cs 2007-08-31
14:09:06 UTC (rev 85120)
@@ -31,8 +31,8 @@
using System.IO;
using System.Collections;
-using MonoDevelop.Core.Properties;
using MonoDevelop.Core;
+using MonoDevelop.Core;
using MonoDevelop.Core.Gui.Components;
using MonoDevelop.Components;
@@ -61,10 +61,10 @@
NUnitCategoryOptions options;
NUnitCategoryOptions localOptions;
- public NUnitOptionsWidget (IProperties
customizationObject) : base ("nunit.glade", "NUnitOptions")
+ public NUnitOptionsWidget (Properties
customizationObject) : base ("nunit.glade", "NUnitOptions")
{
- test = (UnitTest)
((IProperties)customizationObject).GetProperty ("UnitTest");
- config = (string)
((IProperties)customizationObject).GetProperty ("Config");
+ test =
((Properties)customizationObject).Get<UnitTest> ("UnitTest");
+ config =
((Properties)customizationObject).Get<string> ("Config");
options = localOptions = (NUnitCategoryOptions)
test.GetOptions (typeof(NUnitCategoryOptions), config);
store = new TreeStore (typeof(string));
@@ -180,7 +180,7 @@
}
}
- public void Store (IProperties customizationObject)
+ public void Store (Properties customizationObject)
{
if (useParentCheck.Active)
test.ResetOptions
(typeof(NUnitCategoryOptions), config);
@@ -193,12 +193,12 @@
public override void LoadPanelContents()
{
- Add (widget = new NUnitOptionsWidget ((IProperties)
CustomizationObject));
+ Add (widget = new NUnitOptionsWidget ((Properties)
CustomizationObject));
}
public override bool StorePanelContents()
{
- widget.Store ((IProperties) CustomizationObject);
+ widget.Store ((Properties) CustomizationObject);
return true;
}
}
Modified: trunk/monodevelop/Extras/NUnit/Gui/UnitTestOptionsDialog.cs
===================================================================
--- trunk/monodevelop/Extras/NUnit/Gui/UnitTestOptionsDialog.cs 2007-08-31
14:08:47 UTC (rev 85119)
+++ trunk/monodevelop/Extras/NUnit/Gui/UnitTestOptionsDialog.cs 2007-08-31
14:09:06 UTC (rev 85120)
@@ -32,7 +32,7 @@
using Mono.Addins;
using MonoDevelop.Core;
-using MonoDevelop.Core.Properties;
+using MonoDevelop.Core;
using MonoDevelop.Core.Gui.Dialogs;
namespace MonoDevelop.NUnit {
@@ -51,8 +51,8 @@
this.test = test;
this.Title = GettextCatalog.GetString ("Unit Test
Options");
- properties = new DefaultProperties();
- properties.SetProperty ("UnitTest", test);
+ properties = new Properties();
+ properties.Set ("UnitTest", test);
AddNodes (properties, Gtk.TreeIter.Zero,
node.GetChildObjects ());
SelectFirstNode ();
}
@@ -60,9 +60,9 @@
void FillConfigurations (Gtk.TreeIter configIter)
{
foreach (string name in test.GetConfigurations ()) {
- DefaultProperties configNodeProperties = new
DefaultProperties();
- configNodeProperties.SetProperty("UnitTest",
test);
- configNodeProperties.SetProperty("Config",
name);
+ Properties configNodeProperties = new
Properties();
+ configNodeProperties.Set ("UnitTest", test);
+ configNodeProperties.Set ("Config", name);
object[] list =
configurationNode.GetChildObjects ();
if (list.Length > 1) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches