|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface WorkspaceSynchronizer.Delegate
Call-back interface for an object to which a WorkspaceSynchronizer
delegates the algorithms for handling different kinds of resource
changes.
Every call-back is invoked asynchronously in a read-only transaction on the synchronizer's editing domain. Any model changes that the receiver wishes to make must be scheduled asynchronously, although workspace changes are permitted as the calling thread has the workspace lock. The call-backs are not actually required to handle the resource change; they can defer to the default behaviour.
Method Summary | |
---|---|
void |
dispose()
Disposes me. |
boolean |
handleResourceChanged(Resource resource)
Optionally handles a change to the physical workspace resource behind the specified EMF resource. |
boolean |
handleResourceDeleted(Resource resource)
Optionally handles the deletion of the physical workspace resource behind the specified EMF resource. |
boolean |
handleResourceMoved(Resource resource,
URI newURI)
Optionally handles the move of the physical workspace resource behind the specified EMF resource. |
Method Detail |
---|
boolean handleResourceDeleted(Resource resource)
resource
- a resource whose storage has been deleted
true
if I handled the resource deletion;
false
to defer to the workspace synchronizer's
default algorithmboolean handleResourceMoved(Resource resource, URI newURI)
resource
- a resource whose storage has been movednewURI
- the new URI of the moved resource
true
if I handled the resource deletion;
false
to defer to the workspace synchronizer's
default algorithmboolean handleResourceChanged(Resource resource)
resource
- a resource whose storage has been changed
true
if I handled the resource change;
false
to defer to the workspace synchronizer's
default algorithmvoid dispose()
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |