|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Listener interface containing methods that allow clients to keep track of planned changes in the metadata before they are performed. Both methods defined in this interface should be called synchronously. It is forbidden to use these methods to make changes in the repository - code in these methods should have only read access to the MDR. Implementors of these methods should keep in mind that the longer the code in their implementation of these methods performs, the longer the whole repository is blocked by the source operation that fired these events.
It is not guaranteed that operations of this listener interface will see the intermediate state of any complex operation (like addAll). This behavior is implementation specific so the pre-change listeners should not rely on it.
Note: Adding a listener to any of the MDR event sources is not considered as a write operation.
Method Summary | |
void |
changeCancelled(MDRChangeEvent e)
This method gets called if a planned change (which was already announced by calling plannedChange(org.netbeans.api.mdr.events.MDRChangeEvent) was cancelled (e.g. |
void |
plannedChange(MDRChangeEvent e)
This method gets called when a repository change is planned to occur. |
Methods inherited from interface org.netbeans.api.mdr.events.MDRChangeListener |
change |
Method Detail |
public void plannedChange(MDRChangeEvent e) throws VetoChangeException
Any run-time exception thrown by the implementation of this method should not affect the events dispatching (i.e. it should be ignored by the event source).
e
- Object describing the planned change.
VetoChangeException
public void changeCancelled(MDRChangeEvent e)
plannedChange(org.netbeans.api.mdr.events.MDRChangeEvent)
was cancelled (e.g. the operation that was
going to perform the change failed). This method is called synchronously by
the operation that tried to perform the change.Any run-time exception thrown by the implementation of this method should not affect the events dispatching (i.e. it should be ignored by the event source).
e
- Object describing the cancelled change (has to be the same instance
as passed to the plannedChange(org.netbeans.api.mdr.events.MDRChangeEvent)
method).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |