19 package org.sleuthkit.autopsy.timeline.ui.detailview;
21 import javafx.scene.image.Image;
22 import javafx.scene.image.ImageView;
23 import org.controlsfx.control.action.Action;
24 import org.openide.util.NbBundle;
32 @NbBundle.Messages(value = {
"UnhideDescriptionAction.displayName=Unhide"})
33 class UnhideDescriptionAction extends Action {
35 private static final Image SHOW =
new Image(
"/org/sleuthkit/autopsy/timeline/images/eye--plus.png");
37 UnhideDescriptionAction(String description, TimelineLevelOfDetail descriptionLoD, DetailsChart chart) {
38 super(Bundle.UnhideDescriptionAction_displayName());
39 setGraphic(
new ImageView(SHOW));
41 setEventHandler(actionEvent -> {
47 final DescriptionFilter testFilter =
new DescriptionFilter(descriptionLoD, description);
48 chart.getController().getQuickHideFilters().stream()
49 .filter(otherFilterState -> testFilter.equals(otherFilterState.getFilter()))
50 .forEach(descriptionfilter -> descriptionfilter.setSelected(
false));