@@ -646,12 +646,12 @@ protected TreeModelViewer createTreeViewer(Composite parent) {
646646
647647 int style = getViewerStyle ();
648648 fPresentationContext = new DebugModelPresentationContext (getPresentationContextId (), this , fModelPresentation );
649- final TreeModelViewer variablesViewer = new TreeModelViewer (parent , style , fPresentationContext );
650- variablesViewer .getControl ().addFocusListener (new FocusAdapter () {
649+ final TreeModelViewer v = new TreeModelViewer (parent , style , fPresentationContext );
650+ v .getControl ().addFocusListener (new FocusAdapter () {
651651 @ Override
652652 public void focusGained (FocusEvent e ) {
653653 fTreeHasFocus = true ;
654- fSelectionProvider .setActiveProvider (variablesViewer );
654+ fSelectionProvider .setActiveProvider (v );
655655 setGlobalActions ();
656656 }
657657
@@ -665,7 +665,7 @@ public void focusLost(FocusEvent e){
665665 getViewSite ().getActionBars ().updateActionBars ();
666666 }
667667 });
668- variablesViewer .getPresentationContext ().addPropertyChangeListener (
668+ v .getPresentationContext ().addPropertyChangeListener (
669669 event -> {
670670 if (IPresentationContext .PROPERTY_COLUMNS .equals (event .getProperty ())) {
671671 IAction action = getAction ("ShowTypeNames" ); //$NON-NLS-1$
@@ -675,10 +675,10 @@ public void focusLost(FocusEvent e){
675675 }
676676 });
677677
678- variablesViewer .addPostSelectionChangedListener (getTreeSelectionChangedListener ());
678+ v .addPostSelectionChangedListener (getTreeSelectionChangedListener ());
679679 DebugUITools .addPartDebugContextListener (getSite (), this );
680680
681- return variablesViewer ;
681+ return v ;
682682 }
683683
684684 private void setGlobalActions () {
0 commit comments