[Monodevelop-patches-list] r822 - in trunk/MonoDevelop/src: AddIns/DisplayBindings/SourceEditor/Gui AddIns/DisplayBindings/TextEditor/Gui/Editor Main/Base/Services/File
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Feb 8 15:57:08 EST 2004
Author: tberman
Date: 2004-02-08 15:57:08 -0500 (Sun, 08 Feb 2004)
New Revision: 822
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs
trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs
Log:
now, if we dont know how to load a mimetype (or its http:// or ftp://) we will ask gnome to load it.
This should most likely have some try/catch around it, not sure, lets see what we get.
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2004-02-08 19:34:27 UTC (rev 821)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2004-02-08 20:57:08 UTC (rev 822)
@@ -22,7 +22,7 @@
public virtual bool CanCreateContentForFile (string fileName)
{
- return true;
+ return false;
}
public virtual bool CanCreateContentForMimeType (string mimetype)
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs 2004-02-08 19:34:27 UTC (rev 821)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs 2004-02-08 20:57:08 UTC (rev 822)
@@ -42,7 +42,7 @@
public virtual bool CanCreateContentForFile(string fileName)
{
- return true;
+ return false;
}
public virtual bool CanCreateContentForMimeType (string mimetype)
Modified: trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs 2004-02-08 19:34:27 UTC (rev 821)
+++ trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs 2004-02-08 20:57:08 UTC (rev 822)
@@ -103,7 +103,8 @@
fileService.RecentOpen.AddLastFile(fileName);
}
} else {
- throw new ApplicationException("Can't open " + fileName + ", no display codon found.");
+ Gnome.Url.Show ("file://" + fileName);
+ //throw new ApplicationException("Can't open " + fileName + ", no display codon found.");
}
}
More information about the Monodevelop-patches-list
mailing list