public class ModelTraversalEngine
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelTraversalEngine.AbstractVisitor
Abstract implementation of the Visitor interface.
|
static interface |
ModelTraversalEngine.Visitor
Defines an interface for a visitor that traverses the MMI resources.
|
Modifier and Type | Field and Description |
---|---|
static int |
ALL_MODELS |
static int |
REFERENCING_MODELS |
static int |
UML2_MODELS
Deprecated.
use REFERENCING_MODELS instead
|
static int |
VIZ_MODELS |
Constructor and Description |
---|
ModelTraversalEngine(org.eclipse.emf.transaction.TransactionalEditingDomain domain)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
traverse(int flags,
ModelTraversalEngine.Visitor v,
org.eclipse.core.runtime.IProgressMonitor pm)
Traverse the models.
|
void |
traverse(ModelTraversalEngine.Visitor v,
org.eclipse.core.resources.IFile modelFile)
Traverse a model file.
|
void |
unload(ModelTraversalEngine.Visitor v)
Unloads the resources loaded by the visitor.
|
public static final int REFERENCING_MODELS
public static final int UML2_MODELS
public static final int VIZ_MODELS
public static final int ALL_MODELS
public ModelTraversalEngine(org.eclipse.emf.transaction.TransactionalEditingDomain domain)
domain
- TransactionalEditingDomain that will have its resource set
used in obtaining resources during traversalpublic void traverse(int flags, ModelTraversalEngine.Visitor v, org.eclipse.core.runtime.IProgressMonitor pm)
flags
- either REFERENCING_MODELS, VIZ_MODELS, or both.v
- Visitor that visits the EObjects in the modelspm
- IProgressMonitor the progress monitor to usepublic void traverse(ModelTraversalEngine.Visitor v, org.eclipse.core.resources.IFile modelFile)
v
- Visitor that visits the EObjects in the modelmodelFile
- an IFile that contains the modelpublic void unload(ModelTraversalEngine.Visitor v)
v
- Visitor that originally loaded the resources.