mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Merge pull request #6491 from gdicristofaro/7046-programmaticNav
7046 programmatic navigation
This commit is contained in:
commit
af26da9f4a
@ -460,7 +460,6 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
|
||||
* If one of the child nodes of the root node is to be selected, select
|
||||
* it.
|
||||
*/
|
||||
SwingUtilities.invokeLater(() -> {
|
||||
if (rootNode instanceof TableFilterNode) {
|
||||
NodeSelectionInfo selectedChildInfo = ((TableFilterNode) rootNode).getChildNodeSelectionInfo();
|
||||
if (null != selectedChildInfo) {
|
||||
@ -468,18 +467,20 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
|
||||
for (int i = 0; i < childNodes.length; ++i) {
|
||||
Node childNode = childNodes[i];
|
||||
if (selectedChildInfo.matches(childNode)) {
|
||||
SwingUtilities.invokeLater(() -> {
|
||||
try {
|
||||
this.getExplorerManager().setSelectedNodes(new Node[]{childNode});
|
||||
this.getExplorerManager().setExploredContextAndSelection(this.rootNode, new Node[]{childNode});
|
||||
} catch (PropertyVetoException ex) {
|
||||
LOGGER.log(Level.SEVERE, "Failed to select node specified by selected child info", ex);
|
||||
}
|
||||
});
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
((TableFilterNode) rootNode).setChildNodeSelectionInfo(null);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
* The table setup is done, so any added/removed events can now be
|
||||
|
Loading…
x
Reference in New Issue
Block a user