Author: mkrueger
Date: 2007-10-11 04:17:38 -0400 (Thu, 11 Oct 2007)
New Revision: 87318
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Components/LocalizedPropertyDescriptor.cs
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/MessageService.cs
Log:
* MonoDevelop.Core.Gui.Components/LocalizedPropertyDescriptor.cs,
MonoDevelop.Core.Gui/MessageService.cs: Changed calls for the new
StringParser.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog 2007-10-11
08:16:41 UTC (rev 87317)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog 2007-10-11
08:17:38 UTC (rev 87318)
@@ -1,3 +1,9 @@
+2007-10-11 Mike Krüger <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Core.Gui.Components/LocalizedPropertyDescriptor.cs,
+ MonoDevelop.Core.Gui/MessageService.cs: Changed calls for the new
+ StringParser.
+
2007-10-04 Mike Krüger <[EMAIL PROTECTED]>
* Freedesktop.RecentFiles/RecentFileStorage.cs: Made recent file storage
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/MessageService.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/MessageService.cs
2007-10-11 08:16:41 UTC (rev 87317)
+++
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/MessageService.cs
2007-10-11 08:17:38 UTC (rev 87318)
@@ -21,7 +21,6 @@
/// </summary>
public class MessageService : GuiSyncObject, IMessageService
{
- StringParserService stringParserService =
Runtime.StringParserService;
Window rootWindow;
public object RootWindow {
@@ -46,7 +45,7 @@
public void ShowErrorFormatted(string formatstring, params
string[] formatitems)
{
- ShowError(null,
String.Format(stringParserService.Parse(formatstring), formatitems),
rootWindow);
+ ShowError(null,
String.Format(StringParserService.Parse(formatstring), formatitems),
rootWindow);
}
private struct ErrorContainer
@@ -123,7 +122,7 @@
public void ShowWarningFormatted(string formatstring, params
string[] formatitems)
{
-
ShowWarning(String.Format(stringParserService.Parse(formatstring),
formatitems));
+
ShowWarning(String.Format(StringParserService.Parse(formatstring),
formatitems));
}
public bool AskQuestion(string question, string caption)
@@ -144,17 +143,17 @@
public bool AskQuestionFormatted(string caption, string
formatstring, params string[] formatitems)
{
- return
AskQuestion(String.Format(stringParserService.Parse(formatstring),
formatitems), caption);
+ return
AskQuestion(String.Format(StringParserService.Parse(formatstring),
formatitems), caption);
}
public bool AskQuestionFormatted(string formatstring, params
string[] formatitems)
{
- return
AskQuestion(String.Format(stringParserService.Parse(formatstring),
formatitems));
+ return
AskQuestion(String.Format(StringParserService.Parse(formatstring),
formatitems));
}
public bool AskQuestion(string question)
{
- return AskQuestion(stringParserService.Parse(question),
GettextCatalog.GetString ("Question"));
+ return AskQuestion(StringParserService.Parse(question),
GettextCatalog.GetString ("Question"));
}
public QuestionResponse AskQuestionWithCancel(string question,
string caption)
@@ -189,17 +188,17 @@
public QuestionResponse AskQuestionFormattedWithCancel(string
caption, string formatstring, params string[] formatitems)
{
- return
AskQuestionWithCancel(String.Format(stringParserService.Parse(formatstring),
formatitems), caption);
+ return
AskQuestionWithCancel(String.Format(StringParserService.Parse(formatstring),
formatitems), caption);
}
public QuestionResponse AskQuestionFormattedWithCancel(string
formatstring, params string[] formatitems)
{
- return
AskQuestionWithCancel(String.Format(stringParserService.Parse(formatstring),
formatitems));
+ return
AskQuestionWithCancel(String.Format(StringParserService.Parse(formatstring),
formatitems));
}
public QuestionResponse AskQuestionWithCancel(string question)
{
- return
AskQuestionWithCancel(stringParserService.Parse(question),
GettextCatalog.GetString ("Question"));
+ return
AskQuestionWithCancel(StringParserService.Parse(question),
GettextCatalog.GetString ("Question"));
}
public int ShowCustomDialog(string caption, string dialogText,
params string[] buttontexts)
@@ -244,12 +243,12 @@
public void ShowMessageFormatted(string formatstring, params
string[] formatitems)
{
-
ShowMessage(String.Format(stringParserService.Parse(formatstring),
formatitems));
+
ShowMessage(String.Format(StringParserService.Parse(formatstring),
formatitems));
}
public void ShowMessageFormatted(string caption, string
formatstring, params string[] formatitems)
{
-
ShowMessage(String.Format(stringParserService.Parse(formatstring),
formatitems), caption);
+
ShowMessage(String.Format(StringParserService.Parse(formatstring),
formatitems), caption);
}
public void ShowMessage(string message, string caption)
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Components/LocalizedPropertyDescriptor.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Components/LocalizedPropertyDescriptor.cs
2007-10-11 08:16:41 UTC (rev 87317)
+++
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Components/LocalizedPropertyDescriptor.cs
2007-10-11 08:17:38 UTC (rev 87318)
@@ -14,8 +14,6 @@
/// </summary>
public class LocalizedPropertyDescriptor : PropertyDescriptor
{
- static StringParserService stringParserService =
Runtime.StringParserService;
-
PropertyDescriptor basePropertyDescriptor;
string localizedName = String.Empty;
@@ -48,19 +46,19 @@
public override string DisplayName {
get {
- return stringParserService.Parse(localizedName);
+ return StringParserService.Parse(localizedName);
}
}
public override string Description {
get {
- return
stringParserService.Parse(localizedDescription);
+ return
StringParserService.Parse(localizedDescription);
}
}
public override string Category {
get {
- return
stringParserService.Parse(localizedCategory);
+ return
StringParserService.Parse(localizedCategory);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches