public interface IPartListener2
This is a replacement for IPartListener
.
As of 3.5, if the implementation of this listener also implements
IPageChangedListener
then it will also be notified about
PageChangedEvent
s from parts that implement
IPageChangeProvider
.
This interface may be implemented by clients.
Modifier and Type | Method and Description |
---|---|
void |
partActivated(IWorkbenchPartReference partRef)
Notifies this listener that the given part has been activated.
|
void |
partBroughtToTop(IWorkbenchPartReference partRef)
Notifies this listener that the given part has been brought to the top.
|
void |
partClosed(IWorkbenchPartReference partRef)
Notifies this listener that the given part has been closed.
|
void |
partDeactivated(IWorkbenchPartReference partRef)
Notifies this listener that the given part has been deactivated.
|
void |
partHidden(IWorkbenchPartReference partRef)
Notifies this listener that the given part is hidden or obscured by another part.
|
void |
partInputChanged(IWorkbenchPartReference partRef)
Notifies this listener that the given part's input was changed.
|
void |
partOpened(IWorkbenchPartReference partRef)
Notifies this listener that the given part has been opened.
|
void |
partVisible(IWorkbenchPartReference partRef)
Notifies this listener that the given part is visible.
|
void partActivated(IWorkbenchPartReference partRef)
partRef
- the part that was activatedIWorkbenchPage.activate(org.eclipse.ui.IWorkbenchPart)
void partBroughtToTop(IWorkbenchPartReference partRef)
These events occur when an editor is brought to the top in the editor area,
or when a view is brought to the top in a page book with multiple views.
They are normally only sent when a part is brought to the top
programmatically (via IPerspective.bringToTop
). When a part is
activated by the user clicking on it, only partActivated
is sent.
partRef
- the part that was surfacedIWorkbenchPage.bringToTop(org.eclipse.ui.IWorkbenchPart)
void partClosed(IWorkbenchPartReference partRef)
Note that if other perspectives in the same page share the view, this notification is not sent. It is only sent when the view is being removed from the page entirely (it is being disposed).
partRef
- the part that was closedIWorkbenchPage.hideView(org.eclipse.ui.IViewPart)
void partDeactivated(IWorkbenchPartReference partRef)
partRef
- the part that was deactivatedIWorkbenchPage.activate(org.eclipse.ui.IWorkbenchPart)
void partOpened(IWorkbenchPartReference partRef)
Note that if other perspectives in the same page share the view, this notification is not sent. It is only sent when the view is being newly opened in the page (it is being created).
partRef
- the part that was openedIWorkbenchPage.showView(java.lang.String)
void partHidden(IWorkbenchPartReference partRef)
partRef
- the part that is hidden or obscured by another partvoid partVisible(IWorkbenchPartReference partRef)
partRef
- the part that is visiblevoid partInputChanged(IWorkbenchPartReference partRef)
partRef
- the part whose input was changed
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.