Package org.eclipse.ui
Interface IPartListener
- All Known Implementing Classes:
AbstractDebugView
,CloseAllSavedAction
,ContentOutline
,LabelRetargetAction
,NavigationHistoryAction
,PageBookView
,PageEventAction
,PartEventAction
,PartService
,PropertySheet
,RetargetAction
,TemplatesView
public interface IPartListener
Interface for listening to part lifecycle events.
This interface may be implemented by clients.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
partActivated
(IWorkbenchPart part) Notifies this listener that the given part has been activated.void
Notifies this listener that the given part has been brought to the top.void
partClosed
(IWorkbenchPart part) Notifies this listener that the given part has been closed.void
Notifies this listener that the given part has been deactivated.void
partOpened
(IWorkbenchPart part) Notifies this listener that the given part has been opened.
-
Method Details
-
partActivated
Notifies this listener that the given part has been activated.- Parameters:
part
- 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:
part
- the part that was surfaced- See Also:
-
partClosed
Notifies this listener that the given part has been closed.- Parameters:
part
- the part that was closed- See Also:
-
partDeactivated
Notifies this listener that the given part has been deactivated.- Parameters:
part
- the part that was deactivated- See Also:
-
partOpened
Notifies this listener that the given part has been opened.- Parameters:
part
- the part that was opened- See Also:
-