|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.team.core.variants.AbstractResourceVariantTree
org.eclipse.team.core.variants.ResourceVariantTree
org.eclipse.team.core.variants.ThreeWayRemoteTree
A resource variant tree that caches and obtains its bytes from the remote slot in a three-way synchronizer. Clients must subclass to provide remote resource variant refresh functionality.
ThreeWaySubscriber
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.team.core.variants.ResourceVariantTree |
---|
flushVariants, getBytes, getByteStore, hasResourceVariant, members, setVariant |
Methods inherited from class org.eclipse.team.core.variants.AbstractResourceVariantTree |
---|
collectedMembers, fetchMembers, fetchVariant, refresh, refresh |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ThreeWayRemoteTree(ThreeWaySubscriber subscriber)
subscriber
- a three-way subscriberMethod Detail |
public IResource[] roots()
IResourceVariantTree
public IResourceVariant getResourceVariant(IResource resource) throws TeamException
IResourceVariantTree
null
if there is no variant for the resource.
resource
- the local resource
TeamException
protected ThreeWaySubscriber getSubscriber()
protected IResource[] collectChanges(IResource local, IResourceVariant remote, int depth, IProgressMonitor monitor) throws TeamException
AbstractResourceVariantTree
collectChanges
in class ResourceVariantTree
TeamException
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.