Author: mkrueger
Date: 2007-08-31 10:06:50 -0400 (Fri, 31 Aug 2007)
New Revision: 85113

Modified:
   trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog
   trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLogAddIn.cs
   trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLogAddInOptionPanelWidget.cs
   trunk/monodevelop/Extras/ChangeLogAddIn/CommitDialogExtensionWidget.cs
   trunk/monodevelop/Extras/ChangeLogAddIn/ProjectOptionPanel.cs
   
trunk/monodevelop/Extras/ChangeLogAddIn/gtk-gui/MonoDevelop.ChangeLogAddIn.ProjectOptionPanelWidget.cs
Log:
* ProjectOptionPanel.cs, ChangeLogAddIn.cs,
  gtk-gui/MonoDevelop.ChangeLogAddIn.ProjectOptionPanelWidget.cs,
  ChangeLogAddInOptionPanelWidget.cs, CommitDialogExtensionWidget.cs:
  Changes due to new property infrastructure.

Modified: trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog   2007-08-31 14:05:10 UTC 
(rev 85112)
+++ trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog   2007-08-31 14:06:50 UTC 
(rev 85113)
@@ -1,3 +1,10 @@
+2007-08-31  Mike Krüger <[EMAIL PROTECTED]> 
+
+       * ProjectOptionPanel.cs, ChangeLogAddIn.cs,
+         gtk-gui/MonoDevelop.ChangeLogAddIn.ProjectOptionPanelWidget.cs,
+         ChangeLogAddInOptionPanelWidget.cs, CommitDialogExtensionWidget.cs:
+         Changes due to new property infrastructure.
+
 2007-08-14  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * AddLogEntryDialog.cs: When changing selection, get the text from the

Modified: trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLogAddIn.cs
===================================================================
--- trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLogAddIn.cs   2007-08-31 
14:05:10 UTC (rev 85112)
+++ trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLogAddIn.cs   2007-08-31 
14:06:50 UTC (rev 85113)
@@ -102,8 +102,8 @@
                        IEditableTextBuffer textBuffer = 
document.GetContent<IEditableTextBuffer>();                                    
                        if (textBuffer == null) return;
                
-                       string name = 
Runtime.Properties.GetProperty("ChangeLogAddIn.Name", "Full Name");
-                       string email = 
Runtime.Properties.GetProperty("ChangeLogAddIn.Email", "Email Address");
+                       string name = 
PropertyService.Get("ChangeLogAddIn.Name", "Full Name");
+                       string email = 
PropertyService.Get("ChangeLogAddIn.Email", "Email Address");
                        string date = DateTime.Now.ToString("yyyy-MM-dd");
                        string text = date + "  " + name + " <" + email + ">" 
                            + Environment.NewLine + Environment.NewLine;

Modified: 
trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLogAddInOptionPanelWidget.cs
===================================================================
--- trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLogAddInOptionPanelWidget.cs  
2007-08-31 14:05:10 UTC (rev 85112)
+++ trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLogAddInOptionPanelWidget.cs  
2007-08-31 14:06:50 UTC (rev 85113)
@@ -27,7 +27,7 @@
 
 using System;
 using MonoDevelop.Core;
-using MonoDevelop.Core.Properties;
+using MonoDevelop.Core;
 
 namespace MonoDevelop.ChangeLogAddIn
 {
@@ -40,17 +40,17 @@
                
                public void LoadPanelContents()
                {
-                       nameEntry.Text = Runtime.Properties.GetProperty 
("ChangeLogAddIn.Name", "Full Name");
-                       emailEntry.Text = Runtime.Properties.GetProperty 
("ChangeLogAddIn.Email", "Email Address");
-                       integrationCheck.Active = 
Runtime.Properties.GetProperty ("ChangeLogAddIn.VersionControlIntegration", 
true);
+                       nameEntry.Text = PropertyService.Get 
("ChangeLogAddIn.Name", "Full Name");
+                       emailEntry.Text = PropertyService.Get 
("ChangeLogAddIn.Email", "Email Address");
+                       integrationCheck.Active = PropertyService.Get 
("ChangeLogAddIn.VersionControlIntegration", true);
                }
                
                public bool StorePanelContents()
                {
-                       Runtime.Properties.SetProperty("ChangeLogAddIn.Name", 
nameEntry.Text);
-                       Runtime.Properties.SetProperty("ChangeLogAddIn.Email", 
emailEntry.Text);
-                       
Runtime.Properties.SetProperty("ChangeLogAddIn.VersionControlIntegration", 
integrationCheck.Active);
-                       Runtime.Properties.SaveProperties ();
+                       PropertyService.Set("ChangeLogAddIn.Name", 
nameEntry.Text);
+                       PropertyService.Set("ChangeLogAddIn.Email", 
emailEntry.Text);
+                       
PropertyService.Set("ChangeLogAddIn.VersionControlIntegration", 
integrationCheck.Active);
+                       PropertyService.SaveProperties ();
                        return true;
                }
        }

Modified: trunk/monodevelop/Extras/ChangeLogAddIn/CommitDialogExtensionWidget.cs
===================================================================
--- trunk/monodevelop/Extras/ChangeLogAddIn/CommitDialogExtensionWidget.cs      
2007-08-31 14:05:10 UTC (rev 85112)
+++ trunk/monodevelop/Extras/ChangeLogAddIn/CommitDialogExtensionWidget.cs      
2007-08-31 14:06:50 UTC (rev 85113)
@@ -73,7 +73,7 @@
                }
                
                public static bool IntegrationEnabled {
-                       get { return Runtime.Properties.GetProperty 
("ChangeLogAddIn.VersionControlIntegration", true); }
+                       get { return PropertyService.Get 
("ChangeLogAddIn.VersionControlIntegration", true); }
                }
                
                public override void Initialize (ChangeSet cset)
@@ -98,8 +98,8 @@
                        if (!IntegrationEnabled)
                                Remove (box);
 
-                       string name = Runtime.Properties.GetProperty 
("ChangeLogAddIn.Name", "");
-                       string email = Runtime.Properties.GetProperty 
("ChangeLogAddIn.Email", "");
+                       string name = PropertyService.Get 
("ChangeLogAddIn.Name", "");
+                       string email = PropertyService.Get 
("ChangeLogAddIn.Email", "");
                        
                        if (name.Length == 0 || email.Length == 0) {
                                msgLabel.Markup = "<b><span foreground='red'>" 
+ GettextCatalog.GetString ("ChangeLog entries can't be generated.") + 
"</span></b>";
@@ -251,8 +251,8 @@
                                string path = System.IO.Path.GetDirectoryName 
(entry.File);
                                string msg = cset.GeneratePathComment (path, 
entry.Items, 75);
 
-                               string name = Runtime.Properties.GetProperty 
("ChangeLogAddIn.Name", "");
-                               string email = Runtime.Properties.GetProperty 
("ChangeLogAddIn.Email", "");
+                               string name = PropertyService.Get 
("ChangeLogAddIn.Name", "");
+                               string email = PropertyService.Get 
("ChangeLogAddIn.Email", "");
                                string date = 
DateTime.Now.ToString("yyyy-MM-dd");
                                string text = date + "  " + name + " <" + email 
+ "> " + Environment.NewLine + Environment.NewLine;
                                

Modified: trunk/monodevelop/Extras/ChangeLogAddIn/ProjectOptionPanel.cs
===================================================================
--- trunk/monodevelop/Extras/ChangeLogAddIn/ProjectOptionPanel.cs       
2007-08-31 14:05:10 UTC (rev 85112)
+++ trunk/monodevelop/Extras/ChangeLogAddIn/ProjectOptionPanel.cs       
2007-08-31 14:06:50 UTC (rev 85113)
@@ -29,7 +29,7 @@
 using Gtk;
 using MonoDevelop.Projects;
 using MonoDevelop.Core.Gui.Dialogs;
-using MonoDevelop.Core.Properties;
+using MonoDevelop.Core;
 
 namespace MonoDevelop.ChangeLogAddIn
 {              
@@ -39,7 +39,7 @@
                
                public override void LoadPanelContents ()
                {                                               
-                       CombineEntry entry = 
(CombineEntry)((IProperties)CustomizationObject).GetProperty ("CombineEntry");
+                       CombineEntry entry = 
((Properties)CustomizationObject).Get<CombineEntry> ("CombineEntry");
                        widget = new ProjectOptionPanelWidget(entry);
                        Add (widget);
                }

Modified: 
trunk/monodevelop/Extras/ChangeLogAddIn/gtk-gui/MonoDevelop.ChangeLogAddIn.ProjectOptionPanelWidget.cs
===================================================================
--- 
trunk/monodevelop/Extras/ChangeLogAddIn/gtk-gui/MonoDevelop.ChangeLogAddIn.ProjectOptionPanelWidget.cs
      2007-08-31 14:05:10 UTC (rev 85112)
+++ 
trunk/monodevelop/Extras/ChangeLogAddIn/gtk-gui/MonoDevelop.ChangeLogAddIn.ProjectOptionPanelWidget.cs
      2007-08-31 14:06:50 UTC (rev 85113)
@@ -60,7 +60,6 @@
             this.parentRadioButton = new 
Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton2"));
             this.parentRadioButton.CanFocus = true;
             this.parentRadioButton.Name = "parentRadioButton";
-            this.parentRadioButton.Active = true;
             this.parentRadioButton.DrawIndicator = true;
             this.parentRadioButton.UseUnderline = true;
             this.parentRadioButton.Group = new GLib.SList(System.IntPtr.Zero);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to