From 7159d7d10cff3ba6241e5af6d835e2cf092cbe89 Mon Sep 17 00:00:00 2001 From: sidheshenator Date: Thu, 23 Jul 2015 12:53:22 -0400 Subject: [PATCH] Event name changed from DELETE_REPORTS to DELETE_REPORT --- Core/src/org/sleuthkit/autopsy/casemodule/Case.java | 6 +++--- Core/src/org/sleuthkit/autopsy/datamodel/Reports.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java index 2296e3a72b..bef2f61ca9 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java @@ -136,7 +136,7 @@ public class Case implements SleuthkitCase.ErrorObserver { * from the case. Both the old value and the new value supplied by the * event object are null. */ - REPORTS_DELETED; + REPORT_DELETED; }; private String name; @@ -1228,9 +1228,9 @@ public class Case implements SleuthkitCase.ErrorObserver { // fire property change event. try { - Case.pcs.firePropertyChange(Events.REPORTS_DELETED.toString(), null, null); + Case.pcs.firePropertyChange(Events.REPORT_DELETED.toString(), null, null); } catch (Exception ex) { - String errorMessage = String.format("A Case %s listener threw an exception", Events.REPORTS_DELETED.toString()); //NON-NLS + String errorMessage = String.format("A Case %s listener threw an exception", Events.REPORT_DELETED.toString()); //NON-NLS logger.log(Level.SEVERE, errorMessage, ex); } } diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/Reports.java b/Core/src/org/sleuthkit/autopsy/datamodel/Reports.java index 88794fd50b..1dc7910067 100755 --- a/Core/src/org/sleuthkit/autopsy/datamodel/Reports.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/Reports.java @@ -101,7 +101,7 @@ public final class Reports implements AutopsyVisitableItem { @Override public void propertyChange(PropertyChangeEvent evt) { String eventType = evt.getPropertyName(); - if (eventType.equals(Case.Events.REPORT_ADDED.toString()) || eventType.equals(Case.Events.REPORTS_DELETED.toString())) { + if (eventType.equals(Case.Events.REPORT_ADDED.toString()) || eventType.equals(Case.Events.REPORT_DELETED.toString())) { ReportNodeFactory.this.refresh(true); } }