public static interface ModelTraversalEngine.Visitor
Modifier and Type | Method and Description |
---|---|
void |
addLoadedResource(org.eclipse.emf.ecore.resource.Resource resource)
Add the specified resource to the list of resources that was loaded
during the traverasl process.
|
boolean |
canUnload(org.eclipse.core.resources.IFile file)
Return true if the resource in the file can be unloaded, false if
it cannot be (e.g.
|
java.util.Collection |
getLoadedResources()
Return the list of loaded resources.
|
boolean |
okToVisit(org.eclipse.core.resources.IFile modelFile)
Return true if the file should be visited and considered for the
refactoring, false if it should not.
|
boolean |
visit(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.emf.ecore.EObject e)
Method that will be called when visiting the traversed MMI resource.
|
boolean okToVisit(org.eclipse.core.resources.IFile modelFile)
boolean visit(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.emf.ecore.EObject e)
domain
- TransactionalEditingDomain the editing domaine
- EObject that we are visitingboolean canUnload(org.eclipse.core.resources.IFile file)
file
- IFile that should be checked to determine if it can be
unloadedvoid addLoadedResource(org.eclipse.emf.ecore.resource.Resource resource)
resource
- Resource that was loaded during the traversal.java.util.Collection getLoadedResources()