org.eclipse.core.internal.events
Class LifecycleEvent

java.lang.Object
  extended by org.eclipse.core.internal.events.LifecycleEvent

public class LifecycleEvent
extends java.lang.Object

Class used for broadcasting internal workspace lifecycle events. There is a singleton instance, so no listener is allowed to keep references to the event after the notification is finished.


Field Summary
 int kind
          The kind of event
 IResource newResource
          For copy/move events, this resource represents the destination of the copy/move.
static int PRE_LINK_COPY
           
static int PRE_LINK_CREATE
           
static int PRE_LINK_DELETE
           
static int PRE_LINK_MOVE
           
static int PRE_PROJECT_CHANGE
           
static int PRE_PROJECT_CLOSE
           
static int PRE_PROJECT_COPY
           
static int PRE_PROJECT_CREATE
           
static int PRE_PROJECT_DELETE
           
static int PRE_PROJECT_MOVE
           
static int PRE_PROJECT_OPEN
           
static int PRE_REFRESH
           
 IResource resource
          For events that only involve one resource, this is it.
 int updateFlags
          The update flags for the event.
 
Method Summary
static LifecycleEvent newEvent(int kind, IResource resource)
           
static LifecycleEvent newEvent(int kind, IResource oldResource, IResource newResource, int updateFlags)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRE_PROJECT_CLOSE

public static final int PRE_PROJECT_CLOSE
See Also:
Constant Field Values

PRE_PROJECT_CHANGE

public static final int PRE_PROJECT_CHANGE
See Also:
Constant Field Values

PRE_PROJECT_COPY

public static final int PRE_PROJECT_COPY
See Also:
Constant Field Values

PRE_PROJECT_CREATE

public static final int PRE_PROJECT_CREATE
See Also:
Constant Field Values

PRE_PROJECT_DELETE

public static final int PRE_PROJECT_DELETE
See Also:
Constant Field Values

PRE_PROJECT_OPEN

public static final int PRE_PROJECT_OPEN
See Also:
Constant Field Values

PRE_PROJECT_MOVE

public static final int PRE_PROJECT_MOVE
See Also:
Constant Field Values

PRE_LINK_COPY

public static final int PRE_LINK_COPY
See Also:
Constant Field Values

PRE_LINK_CREATE

public static final int PRE_LINK_CREATE
See Also:
Constant Field Values

PRE_LINK_DELETE

public static final int PRE_LINK_DELETE
See Also:
Constant Field Values

PRE_LINK_MOVE

public static final int PRE_LINK_MOVE
See Also:
Constant Field Values

PRE_REFRESH

public static final int PRE_REFRESH
See Also:
Constant Field Values

kind

public int kind
The kind of event


resource

public IResource resource
For events that only involve one resource, this is it. More specifically, this is used for all events that don't involve a more or copy. For copy/move events, this resource represents the source of the copy/move.


newResource

public IResource newResource
For copy/move events, this resource represents the destination of the copy/move.


updateFlags

public int updateFlags
The update flags for the event.

Method Detail

newEvent

public static LifecycleEvent newEvent(int kind,
                                      IResource resource)

newEvent

public static LifecycleEvent newEvent(int kind,
                                      IResource oldResource,
                                      IResource newResource,
                                      int updateFlags)