@@ -646,12 +646,12 @@ protected TreeModelViewer createTreeViewer(Composite parent) {
646
646
647
647
int style = getViewerStyle ();
648
648
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 () {
651
651
@ Override
652
652
public void focusGained (FocusEvent e ) {
653
653
fTreeHasFocus = true ;
654
- fSelectionProvider .setActiveProvider (variablesViewer );
654
+ fSelectionProvider .setActiveProvider (v );
655
655
setGlobalActions ();
656
656
}
657
657
@@ -665,7 +665,7 @@ public void focusLost(FocusEvent e){
665
665
getViewSite ().getActionBars ().updateActionBars ();
666
666
}
667
667
});
668
- variablesViewer .getPresentationContext ().addPropertyChangeListener (
668
+ v .getPresentationContext ().addPropertyChangeListener (
669
669
event -> {
670
670
if (IPresentationContext .PROPERTY_COLUMNS .equals (event .getProperty ())) {
671
671
IAction action = getAction ("ShowTypeNames" ); //$NON-NLS-1$
@@ -675,10 +675,10 @@ public void focusLost(FocusEvent e){
675
675
}
676
676
});
677
677
678
- variablesViewer .addPostSelectionChangedListener (getTreeSelectionChangedListener ());
678
+ v .addPostSelectionChangedListener (getTreeSelectionChangedListener ());
679
679
DebugUITools .addPartDebugContextListener (getSite (), this );
680
680
681
- return variablesViewer ;
681
+ return v ;
682
682
}
683
683
684
684
private void setGlobalActions () {
0 commit comments