From ebec736f83e128524cfb9064fcd2647106f11da6 Mon Sep 17 00:00:00 2001 From: jmillman Date: Mon, 26 Oct 2015 11:41:11 -0400 Subject: [PATCH 1/2] add tool tip to quick hide button --- .../autopsy/timeline/ui/detailview/EventDetailsChart.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/src/org/sleuthkit/autopsy/timeline/ui/detailview/EventDetailsChart.java b/Core/src/org/sleuthkit/autopsy/timeline/ui/detailview/EventDetailsChart.java index 4ed00fa86a..093d9e0137 100644 --- a/Core/src/org/sleuthkit/autopsy/timeline/ui/detailview/EventDetailsChart.java +++ b/Core/src/org/sleuthkit/autopsy/timeline/ui/detailview/EventDetailsChart.java @@ -661,6 +661,7 @@ public final class EventDetailsChart extends XYChart imp HideDescriptionAction(String description, DescriptionLoD descriptionLoD) { super("Hide"); + setLongText("Hide this group from the details view."); setGraphic(new ImageView(HIDE)); setEventHandler((ActionEvent t) -> { final DescriptionFilter testFilter = new DescriptionFilter( From ead078559d0f78fdb3f5f82508fe0f372293d0e1 Mon Sep 17 00:00:00 2001 From: jmillman Date: Mon, 26 Oct 2015 11:41:43 -0400 Subject: [PATCH 2/2] make sure we reset the controller when the case changes. --- .../sleuthkit/autopsy/timeline/TimeLineController.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/timeline/TimeLineController.java b/Core/src/org/sleuthkit/autopsy/timeline/TimeLineController.java index 4587e26122..5d889f68d2 100644 --- a/Core/src/org/sleuthkit/autopsy/timeline/TimeLineController.java +++ b/Core/src/org/sleuthkit/autopsy/timeline/TimeLineController.java @@ -60,7 +60,6 @@ import org.joda.time.ReadablePeriod; import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; import org.openide.util.NbBundle; -import org.openide.windows.WindowManager; import org.sleuthkit.autopsy.casemodule.Case; import static org.sleuthkit.autopsy.casemodule.Case.Events.CURRENT_CASE; import static org.sleuthkit.autopsy.casemodule.Case.Events.DATA_SOURCE_ADDED; @@ -546,16 +545,11 @@ public class TimeLineController { /** * private method to build gui if necessary and make it visible. */ - private void showWindow() { + synchronized private void showWindow() { SwingUtilities.invokeLater(() -> { synchronized (TimeLineController.this) { if (mainFrame == null) { - LOGGER.log(Level.WARNING, "Tried to show timeline with invalid window. Rebuilding GUI."); // NON-NLS - mainFrame = (TimeLineTopComponent) WindowManager.getDefault().findTopComponent( - NbBundle.getMessage(TimeLineController.class, "CTL_TimeLineTopComponentAction")); - if (mainFrame == null) { - mainFrame = new TimeLineTopComponent(this); - } + mainFrame = new TimeLineTopComponent(this); } mainFrame.open(); mainFrame.toFront();