Interface IPartListener2
- All Known Implementing Classes:
ObjectPluginAction
,PartService
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.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
partActivated
(IWorkbenchPartReference partRef) Notifies this listener that the given part has been activated.default void
partBroughtToTop
(IWorkbenchPartReference partRef) Notifies this listener that the given part has been brought to the top.default void
partClosed
(IWorkbenchPartReference partRef) Notifies this listener that the given part has been closed.default void
partDeactivated
(IWorkbenchPartReference partRef) Notifies this listener that the given part has been deactivated.default void
partHidden
(IWorkbenchPartReference partRef) Notifies this listener that the given part is hidden or obscured by another part.default void
partInputChanged
(IWorkbenchPartReference partRef) Notifies this listener that the given part's input was changed.default void
partOpened
(IWorkbenchPartReference partRef) Notifies this listener that the given part has been opened.default void
partVisible
(IWorkbenchPartReference partRef) Notifies this listener that the given part is visible.
-
Method Details
-
partActivated
Notifies this listener that the given part has been activated.- Parameters:
partRef
- the part that was activated- See Also:
-
partBroughtToTop
Notifies this listener that the given part has been brought to the top.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, onlypartActivated
is sent.- Parameters:
partRef
- the part that was surfaced- See Also:
-
partClosed
Notifies this listener that the given part has been closed.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).
- Parameters:
partRef
- the part that was closed- See Also:
-
partDeactivated
Notifies this listener that the given part has been deactivated.- Parameters:
partRef
- the part that was deactivated- See Also:
-
partOpened
Notifies this listener that the given part has been opened.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).
- Parameters:
partRef
- the part that was opened- See Also:
-
partHidden
Notifies this listener that the given part is hidden or obscured by another part.- Parameters:
partRef
- the part that is hidden or obscured by another part
-
partVisible
Notifies this listener that the given part is visible.- Parameters:
partRef
- the part that is visible
-
partInputChanged
Notifies this listener that the given part's input was changed.- Parameters:
partRef
- the part whose input was changed
-