public class RemoteMappingContextStorageAccessor extends Object implements IStorageProviderAccessor
RemoteResourceMappingContext in order to fetch the content of the sides of a
comparison during model resolving.IStorageProviderAccessor.DiffSide| Constructor and Description |
|---|
RemoteMappingContextStorageAccessor(org.eclipse.core.resources.mapping.RemoteResourceMappingContext context)
Wraps the given mapping context within this accessor.
|
| Modifier and Type | Method and Description |
|---|---|
IStorageProvider |
getStorageProvider(org.eclipse.core.resources.IResource resource,
IStorageProviderAccessor.DiffSide side)
This will be called by the URI Converter to get the content associated with the given local resource
(which might not exist locally).
|
boolean |
isInSync(org.eclipse.core.resources.IResource resource)
Checks whether the given resource is considered "in sync".
|
public RemoteMappingContextStorageAccessor(org.eclipse.core.resources.mapping.RemoteResourceMappingContext context)
context - The wrapped context.public IStorageProvider getStorageProvider(org.eclipse.core.resources.IResource resource, IStorageProviderAccessor.DiffSide side) throws org.eclipse.core.runtime.CoreException
getStorageProvider in interface IStorageProviderAccessorresource - The resource we need content for.side - Side of the content we seek.org.eclipse.core.runtime.CoreException - Thrown if the underlying provider cannot be retrieved.public boolean isInSync(org.eclipse.core.resources.IResource resource)
throws org.eclipse.core.runtime.CoreException
isInSync in interface IStorageProviderAccessorresource - The resource to check.true if this resource is in sync with its remote variant, false
otherwise.org.eclipse.core.runtime.CoreException - Thrown if we cannot get the diff for this resource.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.