mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +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
|
* Autopsy Forensic Browser
|
||||||
*
|
*
|
||||||
* Copyright 2011-2017 Basis Technology Corp.
|
* Copyright 2011-2018 Basis Technology Corp.
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -271,6 +271,25 @@ public class DataResultTopComponent extends TopComponent implements DataResult,
|
|||||||
this.dataResultPanel.open();
|
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
|
@Override
|
||||||
public void componentClosed() {
|
public void componentClosed() {
|
||||||
super.componentClosed();
|
super.componentClosed();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user