This commit is contained in:
Karl Mortensen 2015-06-04 11:45:48 -04:00
commit 2e9aa8ba60
2 changed files with 14 additions and 3 deletions

View File

@ -61,6 +61,7 @@ import org.sleuthkit.autopsy.coreutils.Version;
import org.sleuthkit.autopsy.events.AutopsyEvent;
import org.sleuthkit.autopsy.events.AutopsyEventException;
import org.sleuthkit.autopsy.events.AutopsyEventPublisher;
import org.sleuthkit.autopsy.ingest.IngestManager;
import org.sleuthkit.datamodel.*;
import org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess;
@ -524,9 +525,11 @@ public class Case {
*
* @param newDataSource new data source added
*/
void notifyNewDataSource(Content newDataSource) {
public void notifyNewDataSource(Content newDataSource) {
eventPublisher.publish(new DataSourceAddedEvent(newDataSource));
CoreComponentControl.openCoreWindows();
if (IngestManager.getInstance().isRunningInteractively()) {
CoreComponentControl.openCoreWindows();
}
}
/**
@ -1329,7 +1332,6 @@ public class Case {
}
}
/**
* Adds a report to the case.
*

View File

@ -337,6 +337,15 @@ public class IngestManager {
this.runInteractively = runInteractively;
}
/**
* The ingest manager can be directed to forgo use of message boxes, the
* ingest message box, NetBeans progress handles, etc. Running interactively
* is the default.
*/
public synchronized boolean isRunningInteractively() {
return this.runInteractively;
}
/**
* Called by the custom installer for this package once the window system is
* initialized, allowing the ingest manager to get the top component used to