[Monodevelop-patches-list] r1025 - in trunk/MonoDevelop/src/Main/Base/Services: DisplayBinding File
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Tue Feb 24 23:14:55 EST 2004
Author: tberman
Date: 2004-02-24 23:14:54 -0500 (Tue, 24 Feb 2004)
New Revision: 1025
Modified:
trunk/MonoDevelop/src/Main/Base/Services/DisplayBinding/DisplayBindingService.cs
trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs
Log:
this is like when people change a .cvsignore to shut cvs up, but im shutting up ben :)
Modified: trunk/MonoDevelop/src/Main/Base/Services/DisplayBinding/DisplayBindingService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/DisplayBinding/DisplayBindingService.cs 2004-02-25 04:11:31 UTC (rev 1024)
+++ trunk/MonoDevelop/src/Main/Base/Services/DisplayBinding/DisplayBindingService.cs 2004-02-25 04:14:54 UTC (rev 1025)
@@ -29,6 +29,12 @@
{
readonly static string displayBindingPath = "/SharpDevelop/Workbench/DisplayBindings";
DisplayBindingCodon[] bindings = null;
+
+ public IDisplayBinding LastBinding {
+ get {
+ return bindings[0].DisplayBinding;
+ }
+ }
public IDisplayBinding GetBindingPerFileName(string filename)
{
Modified: trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs 2004-02-25 04:11:31 UTC (rev 1024)
+++ trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs 2004-02-25 04:14:54 UTC (rev 1025)
@@ -109,7 +109,11 @@
} else {
try {
Gnome.Url.Show ("file://" + fileName);
- } catch { Console.WriteLine ("Unable to open " + fileName); }
+ } catch {
+ if (fileUtilityService.ObservedLoad(new NamedFileOperationDelegate (new LoadFileWrapper (displayBindingService.LastBinding).Invoke), fileName) == FileOperationResult.OK) {
+ fileService.RecentOpen.AddLastFile (fileName);
+ }
+ }
}
}
More information about the Monodevelop-patches-list
mailing list