Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
berry::IWorkbenchListener Struct Reference

#include <berryIWorkbenchListener.h>

Classes

struct  Events
 

Public Member Functions

virtual ~IWorkbenchListener ()
 
virtual bool PreShutdown (IWorkbench *, bool)
 
virtual void PostShutdown (IWorkbench *)
 

Detailed Description

Interface for listening to workbench lifecycle events.

This interface may be implemented by clients.

See also
IWorkbench::addWorkbenchListener
IWorkbench::removeWorkbenchListener

Definition at line 35 of file berryIWorkbenchListener.h.

Constructor & Destructor Documentation

◆ ~IWorkbenchListener()

virtual berry::IWorkbenchListener::~IWorkbenchListener ( )
virtual

Member Function Documentation

◆ PostShutdown()

virtual void berry::IWorkbenchListener::PostShutdown ( IWorkbench )
inlinevirtual

Performs arbitrary finalization after the workbench stops running.

This method is called during workbench shutdown after all windows have been closed.

Definition at line 84 of file berryIWorkbenchListener.h.

◆ PreShutdown()

virtual bool berry::IWorkbenchListener::PreShutdown ( IWorkbench ,
bool   
)
inlinevirtual

Notifies that the workbench is about to shut down.

This method is called immediately prior to workbench shutdown before any windows have been closed.

The listener may veto a regular shutdown by returning false, although this will be ignored if the workbench is being forced to shut down.

Since other workbench listeners may veto the shutdown, the listener should not dispose resources or do any other work during this notification that would leave the workbench in an inconsistent state.

Returns
true to allow the workbench to proceed with shutdown, false to veto a non-forced shutdown

Definition at line 75 of file berryIWorkbenchListener.h.


The documentation for this struct was generated from the following file: