[Monodevelop-patches-list] r1892 - in trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding: . Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Jul 4 15:08:57 EDT 2004
Author: jluke
Date: 2004-07-04 15:08:57 -0400 (Sun, 04 Jul 2004)
New Revision: 1892
Modified:
trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/Gui/OutputOptionsPanel.cs
Log:
2004-07-04 John Luke <jluke at cfl.rr.com>
* Gui/OutputOptionsPanel.cs: use MessageService, remove ResourceService
Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog 2004-07-04 19:06:25 UTC (rev 1891)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog 2004-07-04 19:08:57 UTC (rev 1892)
@@ -1,3 +1,7 @@
+2004-07-04 John Luke <jluke at cfl.rr.com>
+
+ * Gui/OutputOptionsPanel.cs: use MessageService, remove ResourceService
+
2004-07-01 Todd Berman <tberman at off.net>
* Parser/Resolver.cs: fix up CtrlSpace resolving to add this. members
Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/Gui/OutputOptionsPanel.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/Gui/OutputOptionsPanel.cs 2004-07-04 19:06:25 UTC (rev 1891)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/Gui/OutputOptionsPanel.cs 2004-07-04 19:08:57 UTC (rev 1892)
@@ -16,18 +16,15 @@
using MonoDevelop.Core.Services;
using MonoDevelop.Core.Properties;
using MonoDevelop.Core.AddIns.Codons;
-
using MonoDevelop.Services;
using Gtk;
namespace CSharpBinding
{
-
- //FIXME: i8n
-
public class OutputOptionsPanel : AbstractOptionPanel
{
+ static MessageService messageService = (MessageService) ServiceManager.GetService (typeof (MessageService));
class OutputOptionsPanelWidget : GladeWidgetExtract
{
@@ -72,14 +69,15 @@
return true;
}
- FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.GetService(
- typeof(FileUtilityService));
+ FileUtilityService fileUtilityService = (FileUtilityService) ServiceManager.GetService (typeof (FileUtilityService));
+
if (!fileUtilityService.IsValidFileName(assemblyNameEntry.Text)) {
- //MessageService.ShowError("Invalid assembly name specified");
+ messageService.ShowError (GettextCatalog.GetString ("Invalid assembly name specified"));
return false;
}
+
if (!fileUtilityService.IsValidFileName (outputDirectoryEntry.Text)) {
- //MessageService.ShowError("Invalid output directory specified");
+ messageService.ShowError (GettextCatalog.GetString ("Invalid output directory specified"));
return false;
}
@@ -96,7 +94,6 @@
void SelectFolder(object sender, EventArgs e)
{
- ResourceService res = (ResourceService)ServiceManager.GetService (typeof (ResourceService));
using (FileSelector fdiag = new FileSelector (GettextCatalog.GetString ("Select the directory in which the assembly will be created"))) {
if (fdiag.Run () == (int) ResponseType.Ok) {
outputDirectoryEntry.Text = fdiag.Filename;
More information about the Monodevelop-patches-list
mailing list