Package org.eclipse.emf.compare.merge
Interface ResourceChangeAdapter.IResourceChangeParticipant
- Enclosing class:
- ResourceChangeAdapter
public static interface ResourceChangeAdapter.IResourceChangeParticipant
A participant in a Resource content change, useful to indicate whether an empty resource must actually
be deleted or not, and which other resources need to be deleted/undeleted along.
-
Method Summary
Modifier and Type Method Description booleanacceptDelete(Resource r)Whether the participant accepts the delete of the given resource.java.util.Collection<URI>associatedResourceURIs(Resource r)Provide the resources to (un)delete along with the given resource.booleaninterestedIn(Resource r)Whether the participant is interested in the given resource.
-
Method Details
-
interestedIn
Whether the participant is interested in the given resource.- Parameters:
r- The resource- Returns:
trueif the participant is interested in (relevant for) the given resource.
-
acceptDelete
Whether the participant accepts the delete of the given resource.- Parameters:
r- The resource- Returns:
trueif the participant is OK to delete the resource,falseotherwise, which will block the deletion.
-
associatedResourceURIs
Provide the resources to (un)delete along with the given resource. This allows tools that want to atomically create/delete several resources at a time (for example, one sematin + one graphical resource) to deal with this atomicity.- Parameters:
r- The resource to (un)delete- Returns:
- A collection of associated resources URI, must never be
nullbut can be empty.
-