Author: mkrueger
Date: 2007-08-31 09:50:19 -0400 (Fri, 31 Aug 2007)
New Revision: 85102
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Components/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components.Commands/KeyBindingService.cs
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components/FileSelector.cs
Log:
* MonoDevelop.Components/FileSelector.cs,
MonoDevelop.Components.Commands/KeyBindingService.cs: Changes due
to new property system.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Components/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Components/ChangeLog 2007-08-31
13:49:20 UTC (rev 85101)
+++ trunk/monodevelop/Core/src/MonoDevelop.Components/ChangeLog 2007-08-31
13:50:19 UTC (rev 85102)
@@ -1,3 +1,9 @@
+2007-08-31 Mike Krüger <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Components/FileSelector.cs,
+ MonoDevelop.Components.Commands/KeyBindingService.cs: Changes due to
new
+ property system.
+
2007-08-16 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* gtk-gui/objects.xml: Assigned a better category to custom widgets.
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components/FileSelector.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components/FileSelector.cs
2007-08-31 13:49:20 UTC (rev 85101)
+++
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components/FileSelector.cs
2007-08-31 13:50:19 UTC (rev 85102)
@@ -8,7 +8,6 @@
public class FileSelector : FileChooserDialog
{
const string LastPathProperty =
"MonoDevelop.FileSelector.LastPath";
- PropertyService propertyService = (PropertyService)
ServiceManager.GetService (typeof (PropertyService));
public FileSelector () : this (GettextCatalog.GetString ("Open
file..."), FileChooserAction.Open)
{
@@ -43,14 +42,14 @@
void CommonSetup ()
{
// Restore the last active directory
- string last = (string) propertyService.GetProperty
(LastPathProperty);
+ string last = PropertyService.Get<string>
(LastPathProperty);
if (last != null && last.Length > 0)
this.SetCurrentFolder (last);
else
this.SetCurrentFolder
(Environment.GetFolderPath (Environment.SpecialFolder.Personal));
// add default project path as a MD bookmark
- string pathName = propertyService.GetProperty
("MonoDevelop.Core.Gui.Dialogs.NewProjectDialog.DefaultPath",
Runtime.FileService.GetDirectoryNameWithSeparator (Environment.GetFolderPath
(Environment.SpecialFolder.Personal))).ToString ();
+ string pathName = PropertyService.Get
("MonoDevelop.Core.Gui.Dialogs.NewProjectDialog.DefaultPath",
Runtime.FileService.GetDirectoryNameWithSeparator (Environment.GetFolderPath
(Environment.SpecialFolder.Personal))).ToString ();
if (Runtime.FileService.IsDirectory (pathName)) {
try {
@@ -68,7 +67,7 @@
void OnCurrentFolderChanged (object o, EventArgs args)
{
- propertyService.SetProperty (LastPathProperty,
this.CurrentFolder);
+ PropertyService.Set (LastPathProperty,
this.CurrentFolder);
}
public override void Dispose ()
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components.Commands/KeyBindingService.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components.Commands/KeyBindingService.cs
2007-08-31 13:49:20 UTC (rev 85101)
+++
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components.Commands/KeyBindingService.cs
2007-08-31 13:50:19 UTC (rev 85102)
@@ -57,8 +57,7 @@
static string ConfigFileName {
get {
- PropertyService propertyService =
(PropertyService) ServiceManager.GetService (typeof (PropertyService));
- return Path.Combine
(propertyService.ConfigDirectory, configFileName);
+ return Path.Combine
(PropertyService.ConfigPath, configFileName);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches