MCPcopy Create free account
hub / github.com/antlr/codebuff / updateAttributes

Method updateAttributes

output/java/1.4.14/STViz.java:391–426  ·  view source on GitHub ↗
(final InstanceScope scope, final STViewFrame m)

Source from the content-addressed store, hash-verified

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

Callers 2

openMethod · 0.95
updateCurrentSTMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected