mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Merge remote-tracking branch 'upstream/develop' into 3353_CenterChildWindows
This commit is contained in:
commit
521d15ca63
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Autopsy Forensic Browser
|
||||
*
|
||||
* Copyright 2011-2017 Basis Technology Corp.
|
||||
* Copyright 2011-2018 Basis Technology Corp.
|
||||
* Contact: carrier <at> sleuthkit <dot> org
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -271,6 +271,25 @@ public class DataResultTopComponent extends TopComponent implements DataResult,
|
||||
this.dataResultPanel.open();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void componentActivated() {
|
||||
super.componentActivated();
|
||||
|
||||
/*
|
||||
* Syncronize the data content viewer to show the currently selected
|
||||
* item in the data results if only one is selected, or show nothing
|
||||
* otherwise.
|
||||
*/
|
||||
final DataContentTopComponent dataContentTopComponent = DataContentTopComponent.findInstance();
|
||||
final Node[] nodeList = explorerManager.getSelectedNodes();
|
||||
|
||||
if (nodeList.length == 1) {
|
||||
dataContentTopComponent.setNode(nodeList[0]);
|
||||
} else {
|
||||
dataContentTopComponent.setNode(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void componentClosed() {
|
||||
super.componentClosed();
|
||||
|
Loading…
x
Reference in New Issue
Block a user