public abstract class ThreeWayRemoteTree extends ResourceVariantTree
ThreeWaySubscriber
Constructor and Description |
---|
ThreeWayRemoteTree(ThreeWaySubscriber subscriber)
Create a remote resource variant tree that stores and obtains
it's bytes from the remote slot of the synchronizer of the
given subscriber
|
Modifier and Type | Method and Description |
---|---|
protected IResource[] |
collectChanges(IResource local,
IResourceVariant remote,
int depth,
IProgressMonitor monitor)
Collect the changes in the remote tree to the specified depth.
|
IResourceVariant |
getResourceVariant(IResource resource)
Return the resource variant corresponding to the local resource.
|
protected ThreeWaySubscriber |
getSubscriber()
Return the subscriber associated with this resource variant tree.
|
IResource[] |
roots()
Returns the list of root resources for which this tree may have resource
variants.
|
flushVariants, getBytes, getByteStore, hasResourceVariant, members, setVariant
collectedMembers, fetchMembers, fetchVariant, refresh, refresh
public ThreeWayRemoteTree(ThreeWaySubscriber subscriber)
subscriber
- a three-way subscriberpublic IResource[] roots()
IResourceVariantTree
public IResourceVariant getResourceVariant(IResource resource) throws TeamException
IResourceVariantTree
null
if there is no variant for the resource.resource
- the local resourceTeamException
protected ThreeWaySubscriber getSubscriber()
protected IResource[] collectChanges(IResource local, IResourceVariant remote, int depth, IProgressMonitor monitor) throws TeamException
AbstractResourceVariantTree
collectChanges
in class ResourceVariantTree
local
- the local resource being refreshedremote
- the corresponding resource variantdepth
- the depth of the refresh (one of IResource.DEPTH_ZERO
,
IResource.DEPTH_ONE
, or IResource.DEPTH_INFINITE
)monitor
- a progress monitorTeamException
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.