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

Method updateAttributes

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

Source from the content-addressed store, hash-verified

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