Merge branch '7264_restructure_tree_view' into 7292-personHostSheets

This commit is contained in:
Greg DiCristofaro 2021-02-08 09:14:59 -05:00
commit afa86f8caa
2 changed files with 2 additions and 3 deletions

View File

@ -101,8 +101,7 @@ public final class AutopsyTreeChildFactory extends ChildFactory.Detachable<Objec
return true; return true;
} else { } else {
// otherwise, just show host level // otherwise, just show host level
Set<Host> hosts = tskCase.getHostManager().getHostsByStatus(HostStatus.ACTIVE); tskCase.getHostManager().getHosts().stream()
hosts.stream()
.map(HostGrouping::new) .map(HostGrouping::new)
.sorted() .sorted()
.forEach(list::add); .forEach(list::add);

View File

@ -74,7 +74,7 @@ public class DataSourcesByTypeNode extends DisplayableItemNode {
@Override @Override
protected boolean createKeys(List<HostDataSources> toPopulate) { protected boolean createKeys(List<HostDataSources> toPopulate) {
try { try {
Case.getCurrentCaseThrows().getSleuthkitCase().getHostManager().getHostsByStatus(HostStatus.ACTIVE).stream() Case.getCurrentCaseThrows().getSleuthkitCase().getHostManager().getHosts().stream()
.map(HostDataSources::new) .map(HostDataSources::new)
.sorted() .sorted()
.forEach(toPopulate::add); .forEach(toPopulate::add);