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

Method updateAttributes

output/java/1.4.13/STViz.java:389–424  ·  view source on GitHub ↗
(final InstanceScope scope, final STViewFrame m)

Source from the content-addressed store, hash-verified

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