mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
Merge pull request #1069 from rcordovano/tag_menu_sort_from_sidhesh
Commit Sidhesh's tag sorting for context menu
This commit is contained in:
commit
d53725d5f2
@ -20,6 +20,7 @@ package org.sleuthkit.autopsy.actions;
|
|||||||
|
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import javax.swing.JMenu;
|
import javax.swing.JMenu;
|
||||||
@ -81,6 +82,7 @@ abstract class AddTagAction extends TagAction implements Presenter.Popup {
|
|||||||
List<TagName> tagNames = null;
|
List<TagName> tagNames = null;
|
||||||
try {
|
try {
|
||||||
tagNames = tagsManager.getAllTagNames();
|
tagNames = tagsManager.getAllTagNames();
|
||||||
|
Collections.sort(tagNames);
|
||||||
}
|
}
|
||||||
catch (TskCoreException ex) {
|
catch (TskCoreException ex) {
|
||||||
Logger.getLogger(TagsManager.class.getName()).log(Level.SEVERE, "Failed to get tag names", ex); //NON-NLS
|
Logger.getLogger(TagsManager.class.getName()).log(Level.SEVERE, "Failed to get tag names", ex); //NON-NLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user