diff --git a/Core/src/org/sleuthkit/autopsy/filequery/DiscoveryEvents.java b/Core/src/org/sleuthkit/autopsy/filequery/DiscoveryEvents.java index 276917d83c..07c6545495 100644 --- a/Core/src/org/sleuthkit/autopsy/filequery/DiscoveryEvents.java +++ b/Core/src/org/sleuthkit/autopsy/filequery/DiscoveryEvents.java @@ -75,7 +75,7 @@ final class DiscoveryEvents { */ static final class SearchCompleteEvent { - private final LinkedHashMap groupMap; + private final Map groupMap; private final List searchFilters; private final FileSearch.AttributeType groupingAttribute; private final FileGroup.GroupSortingAlgorithm groupSort; @@ -92,7 +92,7 @@ final class DiscoveryEvents { * @param groupSort The sorting algorithm used for groups. * @param fileSortMethod The sorting method used for files. */ - SearchCompleteEvent(LinkedHashMap groupMap, List searchfilters, + SearchCompleteEvent(Map groupMap, List searchfilters, FileSearch.AttributeType groupingAttribute, FileGroup.GroupSortingAlgorithm groupSort, FileSorter.SortingMethod fileSortMethod) { this.groupMap = groupMap; @@ -200,13 +200,19 @@ final class DiscoveryEvents { } } + /** + * Event to signal that there were no results for the search. + */ static final class NoResultsEvent { - - NoResultsEvent(){ + + /** + * Construct a new NoResultsEvent. + */ + NoResultsEvent() { //no arg conustructor } } - + /** * Event to signal that a group has been selected. */ diff --git a/Core/src/org/sleuthkit/autopsy/filequery/FileSearchData.java b/Core/src/org/sleuthkit/autopsy/filequery/FileSearchData.java index e72c806015..2a3ae77879 100644 --- a/Core/src/org/sleuthkit/autopsy/filequery/FileSearchData.java +++ b/Core/src/org/sleuthkit/autopsy/filequery/FileSearchData.java @@ -23,7 +23,7 @@ import java.util.Arrays; import java.util.Collection; import java.util.List; import org.openide.util.NbBundle; -import org.sleuthkit.autopsy.datamodel.utils.FileTypeUtils; +import org.sleuthkit.autopsy.coreutils.FileTypeUtils; /** * Utility enums for FileSearch diff --git a/Core/src/org/sleuthkit/autopsy/filequery/PageWorker.java b/Core/src/org/sleuthkit/autopsy/filequery/PageWorker.java index d727709590..cdec74a82f 100644 --- a/Core/src/org/sleuthkit/autopsy/filequery/PageWorker.java +++ b/Core/src/org/sleuthkit/autopsy/filequery/PageWorker.java @@ -88,10 +88,4 @@ final class PageWorker extends SwingWorker { } return null; } - - @Override - protected void done() { - - } - } diff --git a/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.form b/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.form index 32dc0787cc..b184ce210a 100644 --- a/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.form +++ b/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.form @@ -173,6 +173,10 @@ + + + + @@ -189,6 +193,10 @@ + + + + @@ -213,6 +221,10 @@ + + + + diff --git a/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.java b/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.java index 351355243a..051fd71881 100644 --- a/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.java +++ b/Core/src/org/sleuthkit/autopsy/filequery/ResultsPanel.java @@ -210,10 +210,10 @@ public class ResultsPanel extends javax.swing.JPanel { currentPageLabel = new javax.swing.JLabel(); nextPageButton = new javax.swing.JButton(); pageSizeSpinner = new javax.swing.JSpinner(); - pageControlsLabel = new javax.swing.JLabel(); - gotoPageLabel = new javax.swing.JLabel(); + javax.swing.JLabel pageControlsLabel = new javax.swing.JLabel(); + javax.swing.JLabel gotoPageLabel = new javax.swing.JLabel(); gotoPageField = new javax.swing.JTextField(); - pageSizeLabel = new javax.swing.JLabel(); + javax.swing.JLabel pageSizeLabel = new javax.swing.JLabel(); resultsViewerPanel = new javax.swing.JPanel(); pagingPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder()); @@ -407,10 +407,7 @@ public class ResultsPanel extends javax.swing.JPanel { // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel currentPageLabel; private javax.swing.JTextField gotoPageField; - private javax.swing.JLabel gotoPageLabel; private javax.swing.JButton nextPageButton; - private javax.swing.JLabel pageControlsLabel; - private javax.swing.JLabel pageSizeLabel; private javax.swing.JSpinner pageSizeSpinner; private javax.swing.JPanel pagingPanel; private javax.swing.JButton previousPageButton;