|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.team.core.mapping.provider.SynchronizationContext
org.eclipse.team.core.mapping.provider.MergeContext
org.eclipse.team.core.subscribers.SubscriberMergeContext
A merge context that uses a subscriber to populate the diff tree used by the context.
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is a guarantee neither that this API will work nor that it will remain the same. Please do not use this API without consulting with the Platform/Team team.
Subscriber,
MergeContext| Field Summary |
|---|
| Fields inherited from interface org.eclipse.team.core.mapping.ISynchronizationContext |
|---|
THREE_WAY, TWO_WAY |
| Constructor Summary | |
|---|---|
protected |
SubscriberMergeContext(Subscriber subscriber,
ISynchronizationScopeManager manager)
|
| Method Summary | |
|---|---|
void |
dispose()
Dispose of the synchronization context and the cache of the context. |
Subscriber |
getSubscriber()
Return the subscriber associated with this context. |
protected SyncInfo |
getSyncInfo(IResource resource)
Return the sync info for the given resource. |
protected void |
initialize()
Initialize the diff tree of this context. |
void |
refresh(org.eclipse.core.resources.mapping.ResourceTraversal[] traversals,
int flags,
IProgressMonitor monitor)
Refresh the context in order to update the diff tree returned by SynchronizationContext.getDiffTree() to include the latest synchronization state for
the resources. |
| Methods inherited from class org.eclipse.team.core.mapping.provider.MergeContext |
|---|
ensureParentsExist, getMergeRule, getMergeRule, getMergeType, makeInSync, markAsMerged, merge, merge, performReplace, performThreeWayMerge, reject, run |
| Methods inherited from class org.eclipse.team.core.mapping.provider.SynchronizationContext |
|---|
getCache, getDiffTree, getScope, getScopeManager, getType, refresh |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.team.core.mapping.IMergeContext |
|---|
markAsMerged, reject |
| Methods inherited from interface org.eclipse.team.core.mapping.ISynchronizationContext |
|---|
getCache, getDiffTree, getScope, getType, refresh |
| Constructor Detail |
protected SubscriberMergeContext(Subscriber subscriber,
ISynchronizationScopeManager manager)
| Method Detail |
protected void initialize()
CoreException
public void refresh(org.eclipse.core.resources.mapping.ResourceTraversal[] traversals,
int flags,
IProgressMonitor monitor)
throws CoreException
ISynchronizationContextISynchronizationContext.getDiffTree() to include the latest synchronization state for
the resources. Any changes will be reported through the change listeners
registered with the diff tree of this context.
Changes to the diff tree may be triggered by a call to this method or by a refresh triggered by some other source. Hence, the callback from the diff tree to report changes may occur in the same thread as the refresh or asynchronously in a separate thread, regardless of who triggered the refresh.
traversals - the resource traversals which indicate which resources are to
be refreshedflags - additional refresh behavior. For instance, if
RemoteResourceMappingContext.FILE_CONTENTS_REQUIRED
is one of the flags, this indicates that the client will be
accessing the contents of the files covered by the traversals.
NONE should be used when no additional behavior
is requiredmonitor - a progress monitor, or null if progress
reporting is not desired
CoreException - if the refresh fails. Reasons include:
ISynchronizationContext.getDiffTree(),
IDiffTree.addDiffChangeListener(IDiffChangeListener)public void dispose()
ISynchronizationContext
dispose in interface ISynchronizationContextdispose in class SynchronizationContext
protected SyncInfo getSyncInfo(IResource resource)
throws CoreException
resource - the resource
CoreExceptionpublic Subscriber getSubscriber()
|
Eclipse Platform Release 3.2 |
|||||||||||
| 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.