# Package org.eclipse.e4.ui.workbench.lifecycle

package org.eclipse.e4.ui.workbench.lifecycle
Application programming interfaces describing the Eclipse 4 lifecycle annotations.

## Package Specification

The package provides annotations that can be used in a lifecycle class. A product can provide a lifecycle manager object. An instance of this object will be created and called into by E4AP using a set of annotated methods. The lifecycle manager class is provided as a URI either using the "lifeCycleURI" product property or from the "-lifeCycleURI" command-line argument; only a single lifecycle manager is supported at present. The lifecycle manager is created on the application context.

Currently supported annotations are those in org.eclipse.e4.ui.workbench.lifecycle:

- PostContextCreate: called after the application context has been created, but prior to the model having been loaded
- ProcessAdditions: called once the application model is loaded.
- ProcessRemovals: called after ProcessAdditions
- PreSave: called before the model is persisted

Related Packages
Package
Description
org.eclipse.e4.ui.workbench
Application programming interfaces describing Eclipse 4 handlers and the workbench.
org.eclipse.e4.ui.workbench.modeling
Application programming interfaces describing the Eclipse 4 model services.
Annotation Interfaces
Class
Description
PostContextCreate
Use this annotation to describe methods that will participate in the application lifecycle.
PostWorkbenchClose
Use this annotation to describe methods that will participate in the application lifecycle.
PreSave
Use this annotation to describe methods that will participate in the application lifecycle.
ProcessAdditions
Use this annotation to describe methods that will participate in the application lifecycle.
ProcessRemovals
Use this annotation to describe methods that will participate in the application lifecycle.