Package org.sleuthkit.autopsy.imageanalyzer

Examples of org.sleuthkit.autopsy.imageanalyzer.ImageAnalyzerController$UpdateFileTask


                } catch (TskCoreException ex) {
                    Exceptions.printStackTrace(ex);
                }
            } else {
                //TODO: convert this to an action!
                final ImageAnalyzerController controller = ImageAnalyzerController.getDefault();
                try {
                    // remove file from old category group
                    controller.getGroupManager().removeFromGroup(new GroupKey<TagName>(DrawableAttribute.TAGS, TagUtils.getFollowUpTagName()), fileID);
               
                    List<ContentTag> contentTagsByContent = Case.getCurrentCase().getServices().getTagsManager().getContentTagsByContent(getFile());
                    for (ContentTag ct : contentTagsByContent) {
                        if (ct.getName().getDisplayName().equals(TagUtils.getFollowUpTagName().getDisplayName())) {
                            Case.getCurrentCase().getServices().getTagsManager().deleteContentTag(ct);
                            SwingUtilities.invokeLater(() -> DirectoryTreeTopComponent.findInstance().refreshContentTreeSafe());
                        }
                    }

                    controller.getGroupManager().handleFileUpdate(FileUpdateEvent.newUpdateEvent(Collections.singleton(fileID), DrawableAttribute.TAGS));
                } catch (TskCoreException ex) {
                    Exceptions.printStackTrace(ex);
                }
            }
        });
View Full Code Here

TOP

Related Classes of org.sleuthkit.autopsy.imageanalyzer.ImageAnalyzerController$UpdateFileTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.