Exemplo n.º 1
0
 public void Execute(TextViewContext context)
 {
     try {
         var container = (BlockContainer)context.Reference.Reference;
         var cfg       = new ControlFlowGraph(container);
         ControlFlowNode.ExportGraph(cfg.cfg).Show();
     } catch (Exception ex) {
         MessageBox.Show("Error generating CFG - requires GraphViz dot.exe in PATH" + Environment.NewLine + Environment.NewLine + ex.ToString());
     }
 }