|
Eclipse Platform Release 3.7 |
|||||||||
| 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
public abstract class 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 subscriber| Method Detail |
|---|
public IResource[] roots()
IResourceVariantTree
public IResourceVariant getResourceVariant(IResource resource)
throws TeamException
IResourceVariantTreenull if there is no variant for the resource.
resource - the local resource
TeamExceptionprotected ThreeWaySubscriber getSubscriber()
protected IResource[] collectChanges(IResource local,
IResourceVariant remote,
int depth,
IProgressMonitor monitor)
throws TeamException
AbstractResourceVariantTree
collectChanges in class ResourceVariantTreelocal - 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 monitor
TeamException
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.