[Monodevelop-patches-list] r2134 - trunk/MonoDevelop/Core/src/MonoDevelop.Startup
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Jan 13 19:31:40 EST 2005
Author: lluis
Date: 2005-01-13 19:31:40 -0500 (Thu, 13 Jan 2005)
New Revision: 2134
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Startup/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Startup/MonoDevelopMain.cs
Log:
2005-01-14 Lluis Sanchez Gual <lluis at novell.com>
* MonoDevelopMain.cs: Use new api for checking for combine files.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Startup/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Startup/ChangeLog 2005-01-14 00:29:55 UTC (rev 2133)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Startup/ChangeLog 2005-01-14 00:31:40 UTC (rev 2134)
@@ -1,3 +1,7 @@
+2005-01-14 Lluis Sanchez Gual <lluis at novell.com>
+
+ * MonoDevelopMain.cs: Use new api for checking for combine files.
+
2004-12-03 John Luke <john.luke at gmail.com>
* Dialogs/ExceptionDialog.cs: remove obsolete gtype stuff
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Startup/MonoDevelopMain.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Startup/MonoDevelopMain.cs 2005-01-14 00:29:55 UTC (rev 2133)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Startup/MonoDevelopMain.cs 2005-01-14 00:31:40 UTC (rev 2134)
@@ -200,22 +200,18 @@
string file = fileToOpen;
if (file == null || file.Length == 0)
return false;
- switch (System.IO.Path.GetExtension(file).ToUpper()) {
- case ".CMBX":
- case ".PRJX":
+ if (Runtime.ProjectService.IsCombineEntryFile (file)) {
try {
IProjectService projectService = (IProjectService)ServiceManager.GetService (typeof (IProjectService));
projectService.OpenCombine(file);
} catch (Exception e) {
}
- break;
- default:
+ } else {
try {
IFileService fileService = (IFileService)MonoDevelop.Core.Services.ServiceManager.GetService(typeof(IFileService));
fileService.OpenFile(file);
} catch (Exception e) {
}
- break;
}
((Gtk.Window)WorkbenchSingleton.Workbench).Present ();
return false;
More information about the Monodevelop-patches-list
mailing list