|
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
org.eclipse.team.internal.ccvs.core.CVSMergeSubscriber
public class CVSMergeSubscriber
A CVSMergeSubscriber is responsible for maintaining the remote trees for a merge into the workspace. The remote trees represent the CVS revisions of the start and end points (version or branch) of the merge. This subscriber stores the remote handles in the resource tree sync info slot. When the merge is cancelled this sync info is cleared. A merge can persist between workbench sessions and thus can be used as an ongoing merge. TODO: Is the merge subscriber interested in workspace sync info changes? TODO: Do certain operations (e.g. replace with) invalidate a merge subscriber? TODO: How to ensure that sync info is flushed when merge roots are deleted?
| Field Summary | |
|---|---|
static String |
ID
|
static String |
ID_MODAL
|
| Fields inherited from class org.eclipse.team.internal.ccvs.core.CVSSyncTreeSubscriber |
|---|
SYNC_KEY_QUALIFIER |
| Constructor Summary | |
|---|---|
CVSMergeSubscriber(IResource[] roots,
CVSTag start,
CVSTag end)
|
|
CVSMergeSubscriber(QualifiedName id,
IResource[] roots,
CVSTag start,
CVSTag end)
|
|
| Method Summary | |
|---|---|
void |
cancel()
|
boolean |
equals(Object other)
|
protected IResourceVariantTree |
getBaseTree()
Return the base resource variant tree. |
protected boolean |
getCacheFileContentsHint()
|
CVSTag |
getEndTag()
|
protected IResourceVariantTree |
getRemoteTree()
Return the remote resource variant tree. |
CVSTag |
getStartTag()
|
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 |
isMerged(IResource resource)
Return whether the given resource has been merged with its corresponding remote. |
boolean |
isSupervised(IResource resource)
Returns true if this resource is supervised by this
subscriber. |
void |
merged(IResource[] resources)
|
void |
resourceChanged(IResourceChangeEvent event)
Notifies this listener that some resource changes are happening, or have already happened. |
IResource[] |
roots()
Returns the list of root resources this subscriber considers for synchronization. |
void |
subscriberResourceChanged(ISubscriberChangeEvent[] deltas)
Notifies this listener that some resources' subscriber properties have changed. |
| Methods inherited from class org.eclipse.team.internal.ccvs.core.CVSSyncTreeSubscriber |
|---|
getId, getName, getResourceComparator, getSyncInfo, isThreeWay, rootsEqual |
| Methods inherited from class org.eclipse.team.core.variants.ResourceVariantTreeSubscriber |
|---|
members, refresh |
| Methods inherited from class org.eclipse.team.core.subscribers.Subscriber |
|---|
addListener, collectOutOfSync, fireTeamResourceChange, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ID
public static final String ID_MODAL
| Constructor Detail |
|---|
public CVSMergeSubscriber(IResource[] roots,
CVSTag start,
CVSTag end)
public CVSMergeSubscriber(QualifiedName id,
IResource[] roots,
CVSTag start,
CVSTag end)
| Method Detail |
|---|
protected SyncInfo getSyncInfo(IResource local,
IResourceVariant base,
IResourceVariant remote)
throws TeamException
ResourceVariantTreeSubscriber
getSyncInfo in class CVSSyncTreeSubscriberlocal - the local resourcebase - the base resource variant or nullremote - the remote resource variant or null
SyncInfo containing the provided resources
TeamException
public void merged(IResource[] resources)
throws TeamException
TeamExceptionpublic void cancel()
public IResource[] roots()
Subscribermembers to navigate the resources managed by this
subscriber.
roots in class Subscriber
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 CVSSyncTreeSubscribertrue if this resource is supervised, and false
otherwise
TeamExceptionpublic CVSTag getStartTag()
public CVSTag getEndTag()
public void resourceChanged(IResourceChangeEvent event)
IResourceChangeListenerThe supplied event gives details. This event object (and the resource delta within it) is valid only for the duration of the invocation of this method.
Note: This method is called by the platform; it is not intended to be called directly by clients.
Note that during resource change event notification, further changes to resources may be disallowed.
resourceChanged in interface IResourceChangeListenerevent - the resource change eventIResourceDelta
public boolean isMerged(IResource resource)
throws TeamException
resource - the local resource
TeamExceptionpublic void subscriberResourceChanged(ISubscriberChangeEvent[] deltas)
ISubscriberChangeListener
subscriberResourceChanged in interface ISubscriberChangeListenerdeltas - detailing the kinds of changesprotected IResourceVariantTree getBaseTree()
ResourceVariantTreeSubscriber
getBaseTree in class ResourceVariantTreeSubscriberprotected IResourceVariantTree getRemoteTree()
ResourceVariantTreeSubscriber
getRemoteTree in class ResourceVariantTreeSubscriberprotected boolean getCacheFileContentsHint()
getCacheFileContentsHint in class CVSSyncTreeSubscriberpublic boolean equals(Object other)
equals in class Object
|
Eclipse Platform v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||