Class ModelResourceVisitor
java.lang.Object
org.eclipse.emf.compare.ide.ui.internal.logical.resolver.ModelResourceVisitor
- All Implemented Interfaces:
org.eclipse.core.resources.IResourceVisitor
public class ModelResourceVisitor
extends Object
implements org.eclipse.core.resources.IResourceVisitor
This implementation of a resource visitor will allow us to browse a given hierarchy and resolve the models
files in contains, as determined by
ThreadedModelResolver#MODEL_CONTENT_TYPES
.- See Also:
-
ThreadedModelResolver#hasModelType(IFile)
-
Constructor Summary
ConstructorDescriptionModelResourceVisitor
(ResourceComputationScheduler<URI> scheduler, SynchronizedResourceSet resourceSet, IResourceDependencyLocalResolver resolver, DiagnosticSupport diagnostic, ThreadSafeProgressMonitor monitor) Default constructor. -
Method Summary
-
Constructor Details
-
ModelResourceVisitor
public ModelResourceVisitor(ResourceComputationScheduler<URI> scheduler, SynchronizedResourceSet resourceSet, IResourceDependencyLocalResolver resolver, DiagnosticSupport diagnostic, ThreadSafeProgressMonitor monitor) Default constructor.- Parameters:
scheduler
- The schedulerresourceSet
- The resource set in which this visitor will load the model files it finds.resolver
- the local dependency resolverdiagnostic
- The diagnosticmonitor
- Monitor on which to report progress to the user.
-
-
Method Details
-
visit
public boolean visit(org.eclipse.core.resources.IResource resource) throws org.eclipse.core.runtime.CoreException - Specified by:
visit
in interfaceorg.eclipse.core.resources.IResourceVisitor
- Throws:
org.eclipse.core.runtime.CoreException
-