mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
3166 Priority column in AID 2.0 will now be sorted Descending order
This commit is contained in:
commit
5b92bcc81d
@ -37,9 +37,10 @@ class AutoIngestRowSorter<M extends DefaultTableModel> extends TableRowSorter<M>
|
||||
|
||||
@Override
|
||||
public void toggleSortOrder(int column) {
|
||||
if (!this.getModel().getColumnClass(column).equals(Date.class)) {
|
||||
super.toggleSortOrder(column); //if it isn't a date perform the regular sorting
|
||||
} else {
|
||||
if (!this.getModel().getColumnClass(column).equals(Date.class) && !this.getModel().getColumnClass(column).equals(Integer.class)) {
|
||||
//currently the only Integer column this sorter is being applied to is the Priority column
|
||||
super.toggleSortOrder(column); //if it isn't a date or Integer column perform the regular sorting
|
||||
} else {
|
||||
ArrayList<RowSorter.SortKey> sortKeys = new ArrayList<>(getSortKeys());
|
||||
if (sortKeys.isEmpty() || sortKeys.get(0).getColumn() != column) { //sort descending
|
||||
sortKeys.add(0, new RowSorter.SortKey(column, SortOrder.DESCENDING));
|
||||
|
@ -122,7 +122,7 @@ public class GroupManager {
|
||||
/*
|
||||
* --- current grouping/sorting attributes ---
|
||||
*/
|
||||
private volatile GroupSortBy sortBy = GroupSortBy.NONE;
|
||||
private volatile GroupSortBy sortBy = GroupSortBy.PRIORITY;
|
||||
private volatile DrawableAttribute<?> groupBy = DrawableAttribute.PATH;
|
||||
private volatile SortOrder sortOrder = SortOrder.ASCENDING;
|
||||
|
||||
@ -466,7 +466,7 @@ public class GroupManager {
|
||||
}
|
||||
}
|
||||
|
||||
public Comparator<DrawableGroup> getSortBy() {
|
||||
public GroupSortBy getSortBy() {
|
||||
return sortBy;
|
||||
}
|
||||
|
||||
|
@ -189,7 +189,7 @@ public class Toolbar extends ToolBar {
|
||||
});
|
||||
|
||||
sortChooser.sortOrderProperty().addListener(queryInvalidationListener);
|
||||
sortChooser.setComparator(GroupSortBy.PRIORITY);
|
||||
sortChooser.setComparator(controller.getGroupManager().getSortBy());
|
||||
getItems().add(1, sortChooser);
|
||||
sortHelpImageView.setCursor(Cursor.HAND);
|
||||
|
||||
|
@ -29,9 +29,9 @@ import org.sleuthkit.autopsy.ingest.IngestModuleGlobalSettingsPanel;
|
||||
final class KeywordSearchGlobalSettingsPanel extends IngestModuleGlobalSettingsPanel implements OptionsPanel {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private GlobalListSettingsPanel listsPanel;
|
||||
private KeywordSearchGlobalLanguageSettingsPanel languagesPanel;
|
||||
private KeywordSearchGlobalSearchSettingsPanel generalPanel;
|
||||
private final GlobalListSettingsPanel listsPanel = new GlobalListSettingsPanel();
|
||||
private final KeywordSearchGlobalLanguageSettingsPanel languagesPanel = new KeywordSearchGlobalLanguageSettingsPanel();
|
||||
private final KeywordSearchGlobalSearchSettingsPanel generalPanel = new KeywordSearchGlobalSearchSettingsPanel();
|
||||
|
||||
KeywordSearchGlobalSettingsPanel() {
|
||||
initComponents();
|
||||
@ -41,9 +41,6 @@ final class KeywordSearchGlobalSettingsPanel extends IngestModuleGlobalSettingsP
|
||||
@NbBundle.Messages({"KeywordSearchGlobalSettingsPanel.Title=Global Keyword Search Settings"})
|
||||
private void customizeComponents() {
|
||||
setName(Bundle.KeywordSearchGlobalSettingsPanel_Title());
|
||||
listsPanel = new GlobalListSettingsPanel();
|
||||
languagesPanel = new KeywordSearchGlobalLanguageSettingsPanel();
|
||||
generalPanel = new KeywordSearchGlobalSearchSettingsPanel();
|
||||
tabbedPane.insertTab(NbBundle.getMessage(this.getClass(), "KeywordSearchConfigurationPanel.customizeComponents.listTabTitle"), null,
|
||||
listsPanel, NbBundle.getMessage(this.getClass(), "KeywordSearchConfigurationPanel.customizeComponents.listLabToolTip"), 0);
|
||||
tabbedPane.insertTab(NbBundle.getMessage(this.getClass(), "KeywordSearchConfigurationPanel.customizeComponents.stringExtTitle"), null,
|
||||
|
Loading…
x
Reference in New Issue
Block a user