diff --git a/Core/src/org/sleuthkit/autopsy/commonfilesearch/Bundle.properties b/Core/src/org/sleuthkit/autopsy/commonfilesearch/Bundle.properties
index 035e165ae4..0915cc2769 100644
--- a/Core/src/org/sleuthkit/autopsy/commonfilesearch/Bundle.properties
+++ b/Core/src/org/sleuthkit/autopsy/commonfilesearch/Bundle.properties
@@ -21,7 +21,6 @@ IntraCasePanel.documentsCheckbox.text=Documents
IntraCasePanel.pictureVideoCheckbox.text=Pictures and Videos
IntraCasePanel.selectedFileCategoriesButton.toolTipText=Select from the options below...
CommonAttributePanel.percentageThresholdTextTwo.text_1=% of data sources in central repository.
-CommonAttributePanel.percentageThresholdTextOne.text=20
CommonAttributePanel.percentageThresholdCheck.text_1_1=Hide files found in over
CommonAttributePanel.intraCaseRadio.text=Between data sources in current case
CommonAttributePanel.errorText.text=In order to search, you must select a file category.
@@ -40,3 +39,4 @@ CommonAttributePanel.intraCasePanel.border.title=Current Case Options
CommonAttributePanel.commonItemSearchDescription.text=Find items that exist in multipel data sources or cases
CommonAttributePanel.scopeLabel.text=Scope of Search
InterCasePanel.correlationComboBoxLabel.text=Select correlation type to search:
+CommonAttributePanel.percentageThresholdInputBox.text=20
diff --git a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributePanel.form b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributePanel.form
index 834b42a763..0f81ccb799 100644
--- a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributePanel.form
+++ b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributePanel.form
@@ -66,7 +66,7 @@
-
+
@@ -115,7 +115,7 @@
-
+
@@ -205,11 +205,11 @@
-
+
-
+
diff --git a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributePanel.java b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributePanel.java
index 56d5168664..aac27c914b 100644
--- a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributePanel.java
+++ b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributePanel.java
@@ -97,12 +97,12 @@ final class CommonAttributePanel extends javax.swing.JDialog implements Observer
this.errorManager = new UserInputErrorManager();
- this.percentageThresholdTextOne.getDocument().addDocumentListener(new DocumentListener() {
+ this.percentageThresholdInputBox.getDocument().addDocumentListener(new DocumentListener() {
- private Dimension preferredSize = CommonAttributePanel.this.percentageThresholdTextOne.getPreferredSize();
+ private Dimension preferredSize = CommonAttributePanel.this.percentageThresholdInputBox.getPreferredSize();
private void maintainSize() {
- CommonAttributePanel.this.percentageThresholdTextOne.setSize(preferredSize);
+ CommonAttributePanel.this.percentageThresholdInputBox.setSize(preferredSize);
}
@Override
@@ -125,6 +125,13 @@ final class CommonAttributePanel extends javax.swing.JDialog implements Observer
});
}
+ /**
+ * Get whether or not the central repository will be enabled as a search
+ * option.
+ *
+ * @return true if the central repository exists and has at least 2 cases in
+ * and includes the current case, false otherwise.
+ */
static boolean isEamDbAvailableForIntercaseSearch() {
try {
return EamDb.isEnabled()
@@ -144,7 +151,14 @@ final class CommonAttributePanel extends javax.swing.JDialog implements Observer
checkFileTypeCheckBoxState();
}
- static boolean isEamDbAvailableForPercentageFrequencyCalculations() {
+ /**
+ * Get whether or not the central repository will be available for filtering
+ * results.
+ *
+ * @return true if the central repository exists and has at least 1 case in
+ * it, false otherwise.
+ */
+ private static boolean isEamDbAvailableForPercentageFrequencyCalculations() {
try {
return EamDb.isEnabled()
&& EamDb.getInstance() != null
@@ -155,11 +169,18 @@ final class CommonAttributePanel extends javax.swing.JDialog implements Observer
return false;
}
+ /**
+ * Disable the option to search for common attributes in the central
+ * repository.
+ */
private void disableIntercaseSearch() {
this.intraCaseRadio.setSelected(true);
this.interCaseRadio.setEnabled(false);
}
+ /**
+ * Perform the common attribute search.
+ */
@NbBundle.Messages({
"CommonAttributePanel.search.results.titleAll=Common Attributes (All Data Sources)",
"CommonAttributePanel.search.results.titleSingle=Common Attributes (Match Within Data Source: %s)",
@@ -179,10 +200,21 @@ final class CommonAttributePanel extends javax.swing.JDialog implements Observer
private String tabTitle;
private ProgressHandle progress;
+ /**
+ * Set the title of the search results for searches using all data
+ * sources.
+ */
private void setTitleForAllDataSources() {
this.tabTitle = Bundle.CommonAttributePanel_search_results_titleAll();
}
+ /**
+ * Set the title of the search results for searches using a single
+ * source.
+ *
+ * @param dataSourceId the datasource ID of the the source being
+ * used
+ */
private void setTitleForSingleSource(Long dataSourceId) {
final String CommonAttributePanel_search_results_titleSingle = Bundle.CommonAttributePanel_search_results_titleSingle();
final Object[] dataSourceName = new Object[]{intraCasePanel.getDataSourceMap().get(dataSourceId)};
@@ -316,6 +348,10 @@ final class CommonAttributePanel extends javax.swing.JDialog implements Observer
new SwingWorker