(final InstanceScope scope, final STViewFrame m)
| 388 | } |
| 389 | |
| 390 | protected void updateAttributes(final InstanceScope scope, final STViewFrame m) { |
| 391 | //System.out.println("updateAttributes: "+Interpreter.getEnclosingInstanceStackString(scope) ); |
| 392 | m.attributes.setModel(new JTreeScopeStackModel(scope)); |
| 393 | m.attributes.setRootVisible(false); |
| 394 | m.attributes.setShowsRootHandles(true); |
| 395 | //System.out.println("add events="+ st.addAttrEvents); |
| 396 | // ST st = scope.st; |
| 397 | // final DefaultListModel attrModel = new DefaultListModel(); |
| 398 | // final Map<String,Object> attrs = st.getAttributes(); |
| 399 | // if ( attrs!=null ) { |
| 400 | // for (String a : attrs.keySet()) { |
| 401 | // if ( st.debugState!=null && st.debugState.addAttrEvents!=null ) { |
| 402 | // List<AddAttributeEvent> events = st.debugState.addAttrEvents.get(a); |
| 403 | // StringBuilder locations = new StringBuilder(); |
| 404 | // int i = 0; |
| 405 | // if ( events!=null ) { |
| 406 | // for (AddAttributeEvent ae : events) { |
| 407 | // if ( i>0 ) locations.append(", "); |
| 408 | // locations.append(ae.getFileName()+":"+ae.getLine()); |
| 409 | // i++; |
| 410 | // } |
| 411 | // } |
| 412 | // if ( locations.length()>0 ) { |
| 413 | // attrModel.addElement(a+" = "+attrs.get(a)+" @ "+locations.toString()); |
| 414 | // } |
| 415 | // else { |
| 416 | // attrModel.addElement(a+" = "+attrs.get(a)); |
| 417 | // } |
| 418 | // } |
| 419 | // else { |
| 420 | // attrModel.addElement(a+" = "+attrs.get(a)); |
| 421 | // } |
| 422 | // } |
| 423 | // } |
| 424 | // m.attributes.setModel(attrModel); |
| 425 | } |
| 426 | |
| 427 | protected void updateStack(InstanceScope scope, STViewFrame m) { |
| 428 | List<ST> stack = Interpreter.getEnclosingInstanceStack(scope, true); |
no outgoing calls
no test coverage detected