|
Eclipse Platform Release 3.4 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.EventObject
org.eclipse.ui.SaveablesLifecycleEvent
Event object describing a change to a set of Saveable objects.
| Field Summary | |
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. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
SaveablesLifecycleEvent(Object source,
int eventType,
Saveable[] saveables,
boolean force)
Creates a new SaveablesLifecycleEvent. |
|
| Method Summary | |
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)
|
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int POST_OPEN
public static final int PRE_CLOSE
public static final int POST_CLOSE
public static final int DIRTY_CHANGED
| Constructor Detail |
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.| Method Detail |
public int getEventType()
public Saveable[] getSaveables()
public boolean isVeto()
public void setVeto(boolean veto)
veto - The veto to set.public boolean isForce()
|
Eclipse Platform Release 3.4 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.