Event name changed from DELETE_REPORTS to DELETE_REPORT

This commit is contained in:
sidheshenator 2015-07-23 12:53:22 -04:00
parent 04bf322b98
commit 7159d7d10c
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}