mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
cleanup Follow Up tag and Category TagNames (prevent short name version from being added, by removing commas)
This commit is contained in:
parent
5d73db1836
commit
cfe44bde9f
@ -78,6 +78,8 @@ public class DeleteFollowUpTag extends Action {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
IngestServices.getInstance().fireModuleDataEvent(new ModuleDataEvent("TagAction", BlackboardArtifact.ARTIFACT_TYPE.TSK_TAG_FILE)); //NON-NLS
|
IngestServices.getInstance().fireModuleDataEvent(new ModuleDataEvent("TagAction", BlackboardArtifact.ARTIFACT_TYPE.TSK_TAG_FILE)); //NON-NLS
|
||||||
|
|
||||||
|
//make sure rest of ui hears category change.
|
||||||
controller.getGroupManager().handleFileUpdate(FileUpdateEvent.newUpdateEvent(Collections.singleton(fileID), DrawableAttribute.TAGS));
|
controller.getGroupManager().handleFileUpdate(FileUpdateEvent.newUpdateEvent(Collections.singleton(fileID), DrawableAttribute.TAGS));
|
||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
LOGGER.log(Level.SEVERE, "Failed to delete follow up tag.", ex);
|
LOGGER.log(Level.SEVERE, "Failed to delete follow up tag.", ex);
|
||||||
|
@ -53,6 +53,10 @@ public enum Category {
|
|||||||
return nameMap.containsKey(tName);
|
return nameMap.containsKey(tName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean isCategoryTagName(TagName tName) {
|
||||||
|
return nameMap.containsKey(tName.getDisplayName());
|
||||||
|
}
|
||||||
|
|
||||||
public static boolean isNotCategoryName(String tName) {
|
public static boolean isNotCategoryName(String tName) {
|
||||||
return nameMap.containsKey(tName) == false;
|
return nameMap.containsKey(tName) == false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user