From 1e67510c8a644541b6003cfd3ba23d2a48fdeebf Mon Sep 17 00:00:00 2001 From: raman-bt Date: Tue, 20 Aug 2013 14:09:59 -0400 Subject: [PATCH] i. Changed access specifier on casemodule.Case.addImage() to public, so other modules can access it to display a newly added image in the UI. ii. Fixed the names of icons in HTML report to go with the recent renaming of some Web artifacts. --- Core/src/org/sleuthkit/autopsy/casemodule/Case.java | 2 +- Core/src/org/sleuthkit/autopsy/report/ReportHTML.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java index 5dee9feb54..219cffb030 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java @@ -326,7 +326,7 @@ public class Case implements SleuthkitCase.ErrorObserver { * @param imgId the ID of the image that being added * @param timeZone the timeZone of the image where it's added */ - Image addImage(String imgPath, long imgId, String timeZone) throws CaseActionException { + public Image addImage(String imgPath, long imgId, String timeZone) throws CaseActionException { logger.log(Level.INFO, "Adding image to Case. imgPath: {0} ID: {1} TimeZone: {2}", new Object[]{imgPath, imgId, timeZone}); try { diff --git a/Core/src/org/sleuthkit/autopsy/report/ReportHTML.java b/Core/src/org/sleuthkit/autopsy/report/ReportHTML.java index 60bb186c0a..d16511cc9d 100644 --- a/Core/src/org/sleuthkit/autopsy/report/ReportHTML.java +++ b/Core/src/org/sleuthkit/autopsy/report/ReportHTML.java @@ -669,13 +669,13 @@ public class ReportHTML implements TableReportModule { output.close(); in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/bookmarks.png"); - output = new FileOutputStream(new File(path + File.separator + "Bookmarks.png")); + output = new FileOutputStream(new File(path + File.separator + "Web Bookmarks.png")); FileUtil.copy(in, output); in.close(); output.close(); in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/cookies.png"); - output = new FileOutputStream(new File(path + File.separator + "Cookies.png")); + output = new FileOutputStream(new File(path + File.separator + "Web Cookies.png")); FileUtil.copy(in, output); in.close(); output.close(); @@ -687,13 +687,13 @@ public class ReportHTML implements TableReportModule { output.close(); in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/downloads.png"); - output = new FileOutputStream(new File(path + File.separator + "Downloads.png")); + output = new FileOutputStream(new File(path + File.separator + "Web Downloads.png")); FileUtil.copy(in, output); in.close(); output.close(); in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/search.png"); - output = new FileOutputStream(new File(path + File.separator + "Web Search Engine Queries.png")); + output = new FileOutputStream(new File(path + File.separator + "Web Search.png")); FileUtil.copy(in, output); in.close(); output.close();