public class SaveablesLifecycleEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
static int |
DIRTY_CHANGED
Event type constant specifying that the dirty state of the given saveables
has changed.
|
static int |
POST_CLOSE
Event type constant specifying that the given saveables have been closed.
|
static int |
POST_OPEN
Event type constant specifying that the given saveables have been opened.
|
static int |
PRE_CLOSE
Event type constant specifying that the given saveables are about to be
closed.
|
source| Constructor and Description |
|---|
SaveablesLifecycleEvent(Object source,
int eventType,
Saveable[] saveables,
boolean force)
Creates a new SaveablesLifecycleEvent.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEventType()
Returns the eventType, currently one of POST_OPEN, PRE_CLOSE, POST_CLOSE,
DIRTY_CHANGED.
|
Saveable[] |
getSaveables()
Returns the affected saveables.
|
boolean |
isForce()
Sets the force flag.
|
boolean |
isVeto()
Returns the veto.
|
void |
setVeto(boolean veto) |
getSource, toStringpublic static final int POST_OPEN
public static final int PRE_CLOSE
public static final int POST_CLOSE
public static final int DIRTY_CHANGED
public SaveablesLifecycleEvent(Object source, int eventType, Saveable[] saveables, boolean force)
source - The source of the event. If an ISaveablesSource notifies
about changes to the saveables returned by
ISaveablesSource.getSaveables(), the source must be
the ISaveablesSource object.eventType - the event type, currently one of POST_OPEN, PRE_CLOSE,
POST_CLOSE, DIRTY_CHANGEDsaveables - The affected saveablesforce - true if the event type is PRE_CLOSE and this is a closed force
that cannot be canceled.public int getEventType()
public Saveable[] getSaveables()
public boolean isVeto()
public void setVeto(boolean veto)
veto - The veto to set.public boolean isForce()
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.