Пример #1
0
 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
    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
    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
 }