cleanup Follow Up tag and Category TagNames (prevent short name version from being added, by removing commas)

This commit is contained in:
jmillman 2015-06-16 12:51:06 -04:00
parent 5d73db1836
commit cfe44bde9f
2 changed files with 6 additions and 0 deletions

View File

@ -78,6 +78,8 @@ public class DeleteFollowUpTag extends Action {
}
}
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));
} catch (TskCoreException ex) {
LOGGER.log(Level.SEVERE, "Failed to delete follow up tag.", ex);

View File

@ -53,6 +53,10 @@ public enum Category {
return nameMap.containsKey(tName);
}
public static boolean isCategoryTagName(TagName tName) {
return nameMap.containsKey(tName.getDisplayName());
}
public static boolean isNotCategoryName(String tName) {
return nameMap.containsKey(tName) == false;
}