/**
   * Sets the {@link Process} whose information to display
   *
   * @param processFullId
   * @param p
   */
  public void setData(String processFullId, Process p) {
    this.processFullId = processFullId;
    process = p;
    setName(processFullId);
    Activities activities = ((Activities) p.getActivity().getValue());
    AbstractNode root =
        new AbstractNode(
            Children.create(new ActivitiesChildFactory(activities), false), Lookups.singleton(p));
    root.setDisplayName(processFullId);

    em.setRootContext(root);
    Node n = root.getChildren().getNodes()[0];
    Property[] columnProperties = n.getPropertySets()[0].getProperties();
    treeTableView.setProperties(columnProperties);
    treeTableView.setTreePreferredWidth(600);
    treeTableView.setTableColumnPreferredWidth(0, 75);
    treeTableView.setTableColumnPreferredWidth(1, 150);
    ((myTreeTableView) treeTableView).setRenderers();
    openTreeToCurrentState();
  }
Exemplo n.º 2
0
 public ExtractedContentNode(SleuthkitCase skCase) {
   super(Children.create(new ExtractedContentChildren(skCase), true), Lookups.singleton(NAME));
   super.setName(NAME);
   super.setDisplayName(NAME);
   this.setIconBaseWithExtension("org/sleuthkit/autopsy/images/extracted_content.png");
 }