Ejemplo n.º 1
0
  private void reanalyzeStackFileInfo() {
    TreeItem item = getSelectedRootItemFromMainTree();
    if (item == null) {
      return;
    }

    StackFileInfo stackFileInfo = (StackFileInfo) item.getData();
    if (stackFileInfo == null) {
      return;
    }

    try {
      ParserConfigReader reader =
          new ParserConfigReader(stackFileInfo.getParserConfig().getConfigFilename());
      ParserConfig config = reader.read();

      StackParser.removeAllAnalyzedFile(stackFileInfo);

      processStackFile(stackFileInfo, config, null, false, true);
    } catch (RuntimeException ex) {
      closeStackFileInfo();
      throw ex;
    }
    item.removeAll();
    item.setText(stackFileInfo.toTreeInfo());
    addMainTreeSubItem(item, stackFileInfo.getStackAnalyzedInfoList());
    item.setExpanded(true);

    clearTable();
  }
Ejemplo n.º 2
0
 private void addMainTree(StackFileInfo stackFileInfo) {
   Tree tree = getMainTree();
   TreeItem item = new TreeItem(tree, SWT.NONE);
   item.setText(stackFileInfo.toTreeInfo());
   item.setImage(Images.thread);
   item.setData(stackFileInfo);
   addMainTreeSubItem(item, stackFileInfo.getStackAnalyzedInfoList());
   item.setExpanded(true);
 }