|
Eclipse Platform v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.team.core.subscribers.Subscriber
org.eclipse.team.core.variants.ResourceVariantTreeSubscriber
org.eclipse.team.internal.ccvs.core.CVSSyncTreeSubscriber
public abstract class CVSSyncTreeSubscriber
This class provides common funtionality for three way sychronizing for CVS.
| Field Summary | |
|---|---|
static String |
SYNC_KEY_QUALIFIER
|
| Method Summary | |
|---|---|
protected boolean |
getCacheFileContentsHint()
|
QualifiedName |
getId()
|
String |
getName()
Return the name of this subscription, in a format that is suitable for display to an end user. |
IResourceVariantComparator |
getResourceComparator()
Returns the comparison criteria that will be used by the sync info created by this subscriber. |
SyncInfo |
getSyncInfo(IResource resource)
Returns synchronization info for the given resource, or null
if there is no synchronization info because the subscriber does not apply
to this resource. |
protected SyncInfo |
getSyncInfo(IResource local,
IResourceVariant base,
IResourceVariant remote)
Method that creates an instance of SyncInfo for the provided local, base and remote resource variants. |
boolean |
isSupervised(IResource resource)
Returns true if this resource is supervised by this
subscriber. |
protected boolean |
isThreeWay()
|
protected boolean |
rootsEqual(Subscriber other)
|
| Methods inherited from class org.eclipse.team.core.variants.ResourceVariantTreeSubscriber |
|---|
getBaseTree, getRemoteTree, members, refresh |
| Methods inherited from class org.eclipse.team.core.subscribers.Subscriber |
|---|
addListener, collectOutOfSync, fireTeamResourceChange, removeListener, roots |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SYNC_KEY_QUALIFIER
| Method Detail |
|---|
public QualifiedName getId()
public String getName()
Subscriber
getName in class Subscriber
public SyncInfo getSyncInfo(IResource resource)
throws TeamException
Subscribernull
if there is no synchronization info because the subscriber does not apply
to this resource.
Note that sync info may be returned for non-existing or for resources which have no corresponding remote resource.
This method will be quick. If synchronization calculation requires content from the server it must be cached when the subscriber is refreshed. A client should call refresh before calling this method to ensure that the latest information is available for computing the sync state.
getSyncInfo in class ResourceVariantTreeSubscriberresource - the resource of interest
TeamException
public boolean isSupervised(IResource resource)
throws TeamException
Subscribertrue if this resource is supervised by this
subscriber. A supervised resource is one for which this subscriber
maintains the synchronization state. Supervised resources are the only
resources returned when members(IResource) was invoked with the parent
of the resource. Returns false in all
other cases.
isSupervised in class Subscribertrue if this resource is supervised, and false
otherwise
TeamExceptionpublic IResourceVariantComparator getResourceComparator()
Subscriber
getResourceComparator in class Subscriber
protected SyncInfo getSyncInfo(IResource local,
IResourceVariant base,
IResourceVariant remote)
throws TeamException
ResourceVariantTreeSubscriber
getSyncInfo in class ResourceVariantTreeSubscriberlocal - the local resourcebase - the base resource variant or nullremote - the remote resource variant or null
SyncInfo containing the provided resources
TeamExceptionprotected boolean getCacheFileContentsHint()
protected boolean isThreeWay()
protected boolean rootsEqual(Subscriber other)
|
Eclipse Platform v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||