Dashboard > UDIG Developer Guide > ... > 1 Overview > 3 Platform Architecture > Key Components > Shutdown Tasks
Shutdown Tasks Log In | Sign Up   View a printable version of the current page.

Added by Jesse Eichar , last edited by Jesse Eichar on Oct 30, 2006
Labels: 
(None)

The ShutdownTaskList object provides a consistent way to schedule tasks that need to be run on shutdown. This is a better solution that running shutdown tasks in a plugin's shutdown method because the tasks are:

  1. Ran in a safe environment so all tasks are guaranteed to run even in the face of exceptions being raised.
  2. Provides a single ProgressDialog for all tests to update rather than either opening a seperate dialog for each task or running silently in the background.

The ShutdownTaskList is a singleton and can be obtained using the ShutdownTaskList.get() method. Tasks can be ran just before shutdown or after the workbench has been shutdown. Currently only the Pre-shutdown tasks have a Progress Dialog associated with them because all UI components are disposed of once the workbench has been shutdown.

Powered by a free Atlassian Confluence Open Source Project License granted to uDig. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators
User-friendly Desktop Internet GIS