public class ViewerFocusTracker
extends java.lang.Object
| Constructor and Description |
|---|
ViewerFocusTracker(org.eclipse.jface.viewers.Viewer[] viewers,
org.eclipse.jface.viewers.Viewer viewerInFocus)
Constructs a focus tracker for the given viewers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes of this focus tracker.
|
protected void |
focusChanged()
A callback method which is called when a viewer gets focus.
|
org.eclipse.jface.viewers.Viewer |
getViewerInFocus()
Returns the last viewer that gained focus.
|
public ViewerFocusTracker(org.eclipse.jface.viewers.Viewer[] viewers,
org.eclipse.jface.viewers.Viewer viewerInFocus)
FocusListener to each of the viewers.viewers - the viewers to be tracked for focus changes
(not null)viewerInFocus - the initial value for the viewer in focus
(may be null)getViewerInFocus()public void dispose()
The ViewerFocusTracker implementation of this method
removes the registered FocusListener from each viewer.
Subclasses may extend this method.
public final org.eclipse.jface.viewers.Viewer getViewerInFocus()
null if noneprotected void focusChanged()
Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0