Browse Source

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
shortcuts
Matt Ward 20 years ago
parent
commit
dd53177cd5
  1. 2
      src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs

2
src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs

@ -899,7 +899,7 @@ namespace ICSharpCode.XmlEditor @@ -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();

Loading…
Cancel
Save