|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(org.eclipse.emf.ecore.resource.Resource resource)
Optionally handles a change to the physical workspace resource behind the specified EMF resource. |
boolean |
handleResourceDeleted(org.eclipse.emf.ecore.resource.Resource resource)
Optionally handles the deletion of the physical workspace resource behind the specified EMF resource. |
boolean |
handleResourceMoved(org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.emf.common.util.URI newURI)
Optionally handles the move of the physical workspace resource behind the specified EMF resource. |
Method Detail |
public boolean handleResourceDeleted(org.eclipse.emf.ecore.resource.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 algorithmpublic boolean handleResourceMoved(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.common.util.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 algorithmpublic boolean handleResourceChanged(org.eclipse.emf.ecore.resource.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 algorithmpublic void dispose()
|
Copyright 2002, 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |