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

Loading…
Cancel
Save