From dd53177cd522c3dc29c571190256dd2a8484730b Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Mon, 2 Oct 2006 15:29:25 +0000 Subject: [PATCH] The XML Editor now correctly detects that the schema associated with a file extension has been changed and updates any open xml documents. In the original code the property name had been changed but the XmlView was watching for property changed events for the old name. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1862 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs index 154f21a359..20a54cd8b3 100644 --- a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs +++ b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs @@ -899,7 +899,7 @@ namespace ICSharpCode.XmlEditor void PropertyChanged(object sender, PropertyChangedEventArgs e) { string extension = Path.GetExtension(xmlEditor.FileName).ToLowerInvariant(); - if (e.Key == extension) { + if (e.Key == String.Concat("ext", extension)) { SetDefaultSchema(extension); } else if (e.Key == XmlEditorAddInOptions.ShowAttributesWhenFoldedPropertyName) { UpdateFolding();