| java.lang.Object org.eclipse.ui.PerspectiveAdapter org.eclipse.ui.internal.PerspectiveTracker
PerspectiveTracker | protected PerspectiveTracker(IWorkbenchWindow window)(Code) | | Creates a perspective tracker for the given window.
Subclasses should override update(IPerspectiveDescriptor)
to get notified of perspective changes.
Parameters: window - the window to track |
PerspectiveTracker | public PerspectiveTracker(IWorkbenchWindow window, IAction action)(Code) | | Creates a perspective tracker for the given window which will
enable the given action only when there is an active perspective.
Parameters: window - the window to track Parameters: action - the action to enable or disable |
dispose | public void dispose()(Code) | | Disposes the tracker.
|
update | protected void update(IPerspectiveDescriptor persp)(Code) | | Performs some function based on the active perspective in the window.
The default implementation enables the action (if given) if there
is an active perspective, otherwise it disables it.
Subclasses may override or extend.
Parameters: persp - the active perspective in the window, or null if none |
Methods inherited from org.eclipse.ui.PerspectiveAdapter | public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective)(Code)(Java Doc) public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, IWorkbenchPartReference partRef, String changeId)(Code)(Java Doc) public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId)(Code)(Java Doc) public void perspectiveClosed(IWorkbenchPage page, IPerspectiveDescriptor perspective)(Code)(Java Doc) public void perspectiveDeactivated(IWorkbenchPage page, IPerspectiveDescriptor perspective)(Code)(Java Doc) public void perspectiveOpened(IWorkbenchPage page, IPerspectiveDescriptor perspective)(Code)(Java Doc) public void perspectivePreDeactivate(IWorkbenchPage page, IPerspectiveDescriptor perspective)(Code)(Java Doc) public void perspectiveSavedAs(IWorkbenchPage page, IPerspectiveDescriptor oldPerspective, IPerspectiveDescriptor newPerspective)(Code)(Java Doc)
|
|
|