MCPcopy Index your code
hub / github.com/antlr/codebuff / updateAttributes

Method updateAttributes

output/java/1.4.17/STViz.java:395–430  ·  view source on GitHub ↗
(final InstanceScope scope, final STViewFrame m)

Source from the content-addressed store, hash-verified

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