public class EMFResourceMapping extends ResourceMapping
Constructor and Description |
---|
EMFResourceMapping(IResource resource,
ResourceMappingContext initialContext,
SynchronizationModel synchronizationModel,
String providerId)
Instantiates our mapping given its underlying physical
IResource . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
SynchronizationModel |
getLatestModel()
Returns the latest synchronization model built from a call to
getTraversals(ResourceMappingContext, IProgressMonitor) . |
Object |
getModelObject() |
String |
getModelProviderId() |
IProject[] |
getProjects() |
ResourceTraversal[] |
getTraversals(ResourceMappingContext context,
IProgressMonitor monitor) |
int |
hashCode() |
accept, contains, findMarkers, getModelProvider
getAdapter
public EMFResourceMapping(IResource resource, ResourceMappingContext initialContext, SynchronizationModel synchronizationModel, String providerId)
IResource
.resource
- The physical resource of this mapping.initialContext
- The context with which this mapping was initially created.traversal
- The pre-computed local traversal composing this resource's logical model.providerId
- The Model provider for which this mapping should be created.public Object getModelObject()
getModelObject
in class ResourceMapping
ResourceMapping.getModelObject()
public String getModelProviderId()
getModelProviderId
in class ResourceMapping
ResourceMapping.getModelProviderId()
public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException
public final SynchronizationModel getLatestModel()
getTraversals(ResourceMappingContext, IProgressMonitor)
.
Note that this will return null
until
getTraversals(ResourceMappingContext, IProgressMonitor)
has been called at least once.
This internal API is not meant to be used outside of EMF Compare.
getTraversals(ResourceMappingContext, IProgressMonitor)
.public boolean equals(Object other)
equals
in class ResourceMapping
public int hashCode()
hashCode
in class ResourceMapping
public IProject[] getProjects()
getProjects
in class ResourceMapping
ResourceMapping.getProjects()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.