mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-18 18:47:43 +00:00
5114 refactor to prevent public api changes
This commit is contained in:
parent
903b658446
commit
dc3975f142
@ -58,7 +58,6 @@ FileSearchDialog.orderAttrRadioButton.text=Attribute
|
|||||||
FileSearchDialog.orderSizeRadioButton.text=Group Size
|
FileSearchDialog.orderSizeRadioButton.text=Group Size
|
||||||
FileSearchDialog.jLabel5.text=Order files by:
|
FileSearchDialog.jLabel5.text=Order files by:
|
||||||
FileSearchDialog.parentCheckBox.text=Parent
|
FileSearchDialog.parentCheckBox.text=Parent
|
||||||
FileSearchDialog.searchButton.text=Search
|
|
||||||
FileSearchFiltering.concatenateSetNamesForDisplay.comma=,
|
FileSearchFiltering.concatenateSetNamesForDisplay.comma=,
|
||||||
# {0} - Data source name
|
# {0} - Data source name
|
||||||
# {1} - Data source ID
|
# {1} - Data source ID
|
||||||
@ -99,10 +98,10 @@ FileSearchFiltering.SizeFilter.or=\ or
|
|||||||
# {0} - Minimum bytes
|
# {0} - Minimum bytes
|
||||||
# {1} - Maximum bytes
|
# {1} - Maximum bytes
|
||||||
FileSearchFiltering.SizeFilter.range=({0} to {1})
|
FileSearchFiltering.SizeFilter.range=({0} to {1})
|
||||||
FileSearchPanel.dialogTitle.text=Test file search
|
|
||||||
# {0} - tag names
|
# {0} - tag names
|
||||||
FileSearchFiltering.TagsFilter.desc=Files that have been tagged {0}
|
FileSearchFiltering.TagsFilter.desc=Files that have been tagged {0}
|
||||||
FileSearchFiltering.TagsFilter.or=\ or
|
FileSearchFiltering.TagsFilter.or=\ or
|
||||||
|
FileSearchPanel.dialogTitle.text=Test file search
|
||||||
FileSorter.SortingMethod.datasource.displayName=By data source
|
FileSorter.SortingMethod.datasource.displayName=By data source
|
||||||
FileSorter.SortingMethod.filename.displayName=By file name
|
FileSorter.SortingMethod.filename.displayName=By file name
|
||||||
FileSorter.SortingMethod.filesize.displayName=By file size
|
FileSorter.SortingMethod.filesize.displayName=By file size
|
||||||
|
@ -113,7 +113,7 @@ class FileDiscoveryDialog extends javax.swing.JDialog {
|
|||||||
} else {
|
} else {
|
||||||
rightSplitPane.setTopComponent(tableViewer);
|
rightSplitPane.setTopComponent(tableViewer);
|
||||||
if (groupSelectedEvent.getFiles().size() > 0) {
|
if (groupSelectedEvent.getFiles().size() > 0) {
|
||||||
tableViewer.setNode(new TableFilterNode(new DataResultFilterNode(new AbstractNode(new SearchChildren(false, groupSelectedEvent.getFiles()))), true));
|
tableViewer.setNode(new TableFilterNode(new SearchNode(groupSelectedEvent.getFiles()), true));
|
||||||
} else {
|
} else {
|
||||||
tableViewer.setNode(new TableFilterNode(new DataResultFilterNode(Node.EMPTY), true));
|
tableViewer.setNode(new TableFilterNode(new DataResultFilterNode(Node.EMPTY), true));
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Autopsy Forensic Browser
|
* Autopsy Forensic Browser
|
||||||
*
|
*
|
||||||
* Copyright 2011 Basis Technology Corp.
|
* Copyright 2011-2019 Basis Technology Corp.
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -30,9 +30,9 @@ import org.sleuthkit.datamodel.AbstractFile;
|
|||||||
/**
|
/**
|
||||||
* Makes nodes for search results.
|
* Makes nodes for search results.
|
||||||
*/
|
*/
|
||||||
public class SearchChildren extends Children.Keys<AbstractFile> {
|
class SearchChildren extends Children.Keys<AbstractFile> {
|
||||||
|
|
||||||
public SearchChildren(boolean lazy, List<AbstractFile> fileList) {
|
SearchChildren(boolean lazy, List<AbstractFile> fileList) {
|
||||||
super(lazy);
|
super(lazy);
|
||||||
this.setKeys(fileList);
|
this.setKeys(fileList);
|
||||||
}
|
}
|
||||||
|
@ -16,9 +16,8 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.sleuthkit.autopsy.filesearch;
|
package org.sleuthkit.autopsy.filequery;
|
||||||
|
|
||||||
import org.sleuthkit.autopsy.filequery.SearchChildren;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.openide.nodes.AbstractNode;
|
import org.openide.nodes.AbstractNode;
|
||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
@ -28,11 +27,11 @@ import org.sleuthkit.datamodel.AbstractFile;
|
|||||||
*
|
*
|
||||||
* @author jantonius
|
* @author jantonius
|
||||||
*/
|
*/
|
||||||
class SearchNode extends AbstractNode {
|
public class SearchNode extends AbstractNode {
|
||||||
|
|
||||||
private SearchChildren children;
|
private SearchChildren children;
|
||||||
|
|
||||||
SearchNode(List<AbstractFile> keys) {
|
public SearchNode(List<AbstractFile> keys) {
|
||||||
super(new SearchChildren(true, keys));
|
super(new SearchChildren(true, keys));
|
||||||
this.children = (SearchChildren) this.getChildren();
|
this.children = (SearchChildren) this.getChildren();
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Autopsy Forensic Browser
|
* Autopsy Forensic Browser
|
||||||
*
|
*
|
||||||
* Copyright 2011-2018 Basis Technology Corp.
|
* Copyright 2011-2019 Basis Technology Corp.
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -18,6 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.sleuthkit.autopsy.filesearch;
|
package org.sleuthkit.autopsy.filesearch;
|
||||||
|
|
||||||
|
import org.sleuthkit.autopsy.filequery.SearchNode;
|
||||||
import java.awt.Component;
|
import java.awt.Component;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
import java.awt.GridLayout;
|
import java.awt.GridLayout;
|
||||||
@ -67,7 +68,7 @@ class FileSearchPanel extends javax.swing.JPanel {
|
|||||||
/**
|
/**
|
||||||
* Creates new form FileSearchPanel
|
* Creates new form FileSearchPanel
|
||||||
*/
|
*/
|
||||||
public FileSearchPanel() {
|
FileSearchPanel() {
|
||||||
initComponents();
|
initComponents();
|
||||||
customizeComponents();
|
customizeComponents();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user