From 9603a7722e12c76b234a3f3819db0be24e55b3c7 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Tue, 27 Feb 2007 00:17:22 +0000 Subject: [PATCH] The XML Editor now returns the correct value for the IViewContent's IsReadOnly property. A read-only xml file will now be indicated by a + character after the filename when opened inside SharpDevelop. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2404 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs index 945cf1dc4d..d5be962044 100644 --- a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs +++ b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs @@ -139,6 +139,12 @@ namespace ICSharpCode.XmlEditor } } + public override bool IsReadOnly { + get { + return xmlEditor.IsReadOnly; + } + } + /// /// Loads the string content into the view. ///