Browse Source

If the user executes an xpath query with the namespace tab visible then the results tab is re-displayed.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1896 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 20 years ago
parent
commit
675618d3d9
  1. 6
      src/AddIns/DisplayBindings/XmlEditor/Project/Src/XPathQueryControl.cs

6
src/AddIns/DisplayBindings/XmlEditor/Project/Src/XPathQueryControl.cs

@ -447,6 +447,7 @@ namespace ICSharpCode.XmlEditor @@ -447,6 +447,7 @@ namespace ICSharpCode.XmlEditor
} catch (XmlException xmlEx) {
AddErrorResult(xmlEx);
} finally {
BringResultsTabToFront();
view.TextEditorControl.Refresh();
}
}
@ -456,6 +457,11 @@ namespace ICSharpCode.XmlEditor @@ -456,6 +457,11 @@ namespace ICSharpCode.XmlEditor
xPathResultsListView.Items.Clear();
}
void BringResultsTabToFront()
{
tabControl.SelectedTab = tabControl.TabPages[0];
}
void AddXPathResults(XPathNodeMatch[] nodes)
{
foreach (XPathNodeMatch node in nodes) {

Loading…
Cancel
Save