예제 #1
0
파일: Tags.java 프로젝트: halbbob/autopsy
 public TagsRootNode() {
   super(Children.create(new Tags.TagsRootChildren(), true), Lookups.singleton(NAME));
   super.setName(NAME);
   super.setDisplayName(NAME);
   this.setIconBaseWithExtension(TAG_ICON_PATH);
   initData();
 }
예제 #2
0
파일: Tags.java 프로젝트: halbbob/autopsy
    TagNodeRoot(
        BlackboardArtifact.ARTIFACT_TYPE tagType,
        String tagName,
        List<BlackboardArtifact> artifacts) {
      super(
          Children.create(new Tags.TagsChildrenNode(tagType, tagName, artifacts), true),
          Lookups.singleton(tagName));

      super.setName(tagName);
      super.setDisplayName(tagName + " (" + artifacts.size() + ")");

      if (tagName.equals(BOOKMARK_TAG_NAME)) {
        this.setIconBaseWithExtension(BOOKMARK_ICON_PATH);
      } else {
        this.setIconBaseWithExtension(TAG_ICON_PATH);
      }
    }
예제 #3
0
      private void init() {
        super.setName(filter.getName());

        String tooltip = filter.getDisplayName();
        this.setShortDescription(tooltip);
        this.setIconBaseWithExtension("org/sleuthkit/autopsy/images/file-size-16.png"); // NON-NLS

        updateDisplayName();
      }
예제 #4
0
파일: Tags.java 프로젝트: halbbob/autopsy
    TagsNodeRoot(
        BlackboardArtifact.ARTIFACT_TYPE tagType, Map<String, List<BlackboardArtifact>> subTags) {
      super(
          Children.create(new TagRootChildren(tagType, subTags), true),
          Lookups.singleton(tagType.getDisplayName()));

      String name = null;
      if (tagType.equals(BlackboardArtifact.ARTIFACT_TYPE.TSK_TAG_FILE)) {
        name = FILE_TAG_LABEL_NAME;
      } else if (tagType.equals(BlackboardArtifact.ARTIFACT_TYPE.TSK_TAG_ARTIFACT)) {
        name = RESULT_TAG_LABEL_NAME;
      }

      super.setName(name);
      super.setDisplayName(name + " (" + subTags.values().size() + ")");

      this.setIconBaseWithExtension(TAG_ICON_PATH);
    }
예제 #5
0
 private void updateDisplayName() {
   final long count = FileSizeChildren.calculateItems(skCase, filter);
   super.setDisplayName(filter.getDisplayName() + " (" + count + ")");
 }
예제 #6
0
 FileSizeRootNode(SleuthkitCase skCase) {
   super(Children.create(new FileSizeRootChildren(skCase), true), Lookups.singleton(NAME));
   super.setName(NAME);
   super.setDisplayName(NAME);
   this.setIconBaseWithExtension("org/sleuthkit/autopsy/images/file-size-16.png"); // NON-NLS
 }