Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/08/10 15:53:45 (14 years ago)
Author:
epitzer
Message:

Show and link operator parameters and variables (#47)

Location:
branches/HeuristicLab.DebugEngine
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DebugEngine/DebugEngineView.Designer.cs

    r4743 r4746  
    151151      this.scopeTreeView.Size = new System.Drawing.Size(247, 143);
    152152      this.scopeTreeView.TabIndex = 0;
     153      this.scopeTreeView.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.scopeTreeView_NodeMouseDoubleClick);
    153154      //
    154155      // stepButton
  • branches/HeuristicLab.DebugEngine/DebugEngineView.cs

    r4743 r4746  
    116116          if (atom.Operator.Breakpoint)
    117117            node.ForeColor = Color.Red;
     118          foreach (var param in atom.Operator.Parameters) {
     119            IItem value = null;
     120            try {
     121              value = param.ActualValue;
     122            } catch (Exception) { }
     123            TreeNode paramNode = node.Nodes.Add(string.Format("Param {0}={1}", param.Name, value));
     124            paramNode.Tag = param;
     125          }
    118126        } else if (op is OperationCollection) {
    119127          OperationCollection ops = op as OperationCollection;
     
    128136      TreeNode node = nodes.Add(scope.Name);
    129137      foreach (var var in scope.Variables) {
    130         node.Nodes.Add(string.Format("{0}={1}", var.Name, var.Value.ToString()));
     138        TreeNode varNode = node.Nodes.Add(string.Format("{0}={1}", var.Name, var.Value.ToString()));
     139        varNode.Tag = var.Value;
    131140      }
    132141      foreach (var subScope in scope.SubScopes) {
     
    152161          executionStackTreeView.SelectedNode = null;
    153162        }
     163        IParameter param = e.Node.Tag as IParameter;
     164        if (param != null)
     165          MainFormManager.MainForm.ShowContent(param);
    154166      }
    155167    }
     
    158170      UpdateView();
    159171    }
     172
     173    private void scopeTreeView_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) {
     174      if (e.Node.Tag != null)
     175        MainFormManager.MainForm.ShowContent((IItem)e.Node.Tag);
     176    }
    160177  }
    161178}
  • branches/HeuristicLab.DebugEngine/DebugEngineView.resx

    r4743 r4746  
    122122    <value>
    123123        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
    124         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALDQAA
    125         Cw0B7QfALAAAAXxJREFUOE9j+P//PwM6Tuh5woZNHJsYhmaQIqABpkDMQowhWA0onPX8f/zkt/bohoDE
     124        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALDAAA
     125        CwwBP0AiyAAAAXxJREFUOE9j+P//PwM6Tuh5woZNHJsYhmaQIqABpkDMQowhWA0onPX8f/zkt/bohoDE
    126126        G+Y9/xXb8fANzHCsBuTOfPY/ofve/7gJr72QvQMSX3Xk/f/w9gdA/RCvYzUgY8rT//P2//4f1HDzL9CA
    127127        bJghIPGF+z78D264ht8AoIb/s/f9+t+59e9/t9LL/4H8PJAhIPFpW97/96++gN+AyK5H/6ds+/W/ZOnf
     
    135135    <value>
    136136        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
    137         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEAAA
    138         CxABrSO9dQAAAkNJREFUOE+d0l1IU2EYB/AZXSR0GV10bRclXWRdRB8kk5TIMV3iFgWC1FhgZbNlBNY2
     137        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALDwAA
     138        Cw8BkvkDpQAAAkNJREFUOE+d0l1IU2EYB/AZXSR0GV10bRclXWRdRB8kk5TIMV3iFgWC1FhgZbNlBNY2
    139139        KqEwzbkMwpVzKyoWeswuXNOWy8yZ8zPXyMlcbbbvj+NZ24x/74JC7BjSgQfOxfv+zv95zpMFgKN60LW+
    140140        KH9X0ez8At/1xb8tGqc3B4KRjRuysz/lbM1rquBtpzirPRmg941Nrm6nxrpMQwmj9SOMU07cowZwsUkP
Note: See TracChangeset for help on using the changeset viewer.