Resource change events describe changes to resources.
There are currently five different types of resource change events:
- After-the-fact batch reports of arbitrary creations, deletions and modifications to one or more resources expressed as a hierarchical resource delta. Event type is
PRE_BUILD
, and getDelta
returns the hierarchical delta. The resource delta is rooted at the workspace root. The getBuildKind
method returns the kind of build that is about to occur, and the getSource
method returns the scope of the build (either the workspace or a single project). These events are broadcast to interested parties immediately before each build operation. If autobuilding is not enabled, these events still occur at times when autobuild would have occurred. The workspace is open for change during notification of these events. The delta reported in this event cycle is identical across all listeners registered for this type of event. Resource changes attempted during a PRE_BUILD
callback must be done in the thread doing the notification. - After-the-fact batch reports of arbitrary creations, deletions and modifications to one or more resources expressed as a hierarchical resource delta. Event type is
POST_BUILD
, and getDelta
returns the hierarchical delta. The resource delta is rooted at the workspace root. The getBuildKind
method returns the kind of build that occurred, and the getSource
method returns the scope of the build (either the workspace or a single project). These events are broadcast to interested parties at the end of every build operation. If autobuilding is not enabled, these events still occur at times when autobuild would have occurred. The workspace is open for change during notification of these events. The delta reported in this event cycle is identical across all listeners registered for this type of event. Resource changes attempted during a POST_BUILD
callback must be done in the thread doing the notification. - After-the-fact batch reports of arbitrary creations, deletions and modifications to one or more resources expressed as a hierarchical resource delta. Event type is
POST_CHANGE
, and getDelta
returns the hierarchical delta. The resource delta is rooted at the workspace root. These events are broadcast to interested parties after a set of resource changes and happen whether or not autobuilding is enabled. The workspace is closed for change during notification of these events. The delta reported in this event cycle is identical across all listeners registered for this type of event. - Before-the-fact reports of the impending closure of a single project. Event type is
PRE_CLOSE
, and getResource
returns the project being closed. The workspace is closed for change during notification of these events. - Before-the-fact reports of the impending deletion of a single project. Event type is
PRE_DELETE
, and getResource
returns the project being deleted. The workspace is closed for change during notification of these events.
In order to handle additional event types that may be introduced in future releases of the platform, clients should do not write code that presumes the set of event types is closed.
This interface is not intended to be implemented by clients.