public abstract class SynchronizationCompareAdapter extends Object implements ISynchronizationCompareAdapter
ISynchronizationCompareAdapter.
Clients may subclass this class.
| Constructor and Description |
|---|
SynchronizationCompareAdapter() |
| Modifier and Type | Method and Description |
|---|---|
ICompareInput |
asCompareInput(ISynchronizationContext context,
Object o)
Default implementation that is capable of returning a compare input for objects
that adapt to
IFile. |
ImageDescriptor |
getImageDescriptor(ResourceMapping mapping)
Return an image descriptor that can be displayed as an icon for the
model object of the given resource mapping.
|
String |
getName(ResourceMapping mapping)
Get the name associated with the model object of the given mapping.
|
String |
getPathString(ResourceMapping mapping)
Get the path associated with the model object
of the given mapping.
|
int |
getSynchronizationState(ITeamStateProvider provider,
ResourceMapping mapping,
int stateMask,
IProgressMonitor monitor)
Return the synchronization state of the resource mapping with respect to
the given team state provider.
|
boolean |
hasCompareInput(ISynchronizationContext context,
Object object)
Return whether their is a compare input associated with the given object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrestore, savepublic ICompareInput asCompareInput(ISynchronizationContext context, Object o)
IFile. Subclasses should override if compare inputs are
available for other types of model elements.asCompareInput in interface ISynchronizationCompareAdaptercontext - the synchronization contexto - the model objectnull if the model object is
in-sync or otherwise cannot be compared.ISynchronizationCompareAdapter.asCompareInput(ISynchronizationContext, Object)public boolean hasCompareInput(ISynchronizationContext context, Object object)
ISynchronizationCompareAdaptertrue if ISynchronizationCompareAdapter.asCompareInput(ISynchronizationContext, Object)
would return a value and false if it would return null.hasCompareInput in interface ISynchronizationCompareAdaptercontext - the synchronization contextobject - the object.public String getName(ResourceMapping mapping)
ISynchronizationCompareAdaptergetName in interface ISynchronizationCompareAdaptermapping - the mappingpublic String getPathString(ResourceMapping mapping)
ISynchronizationCompareAdaptergetPathString in interface ISynchronizationCompareAdaptermapping - the mappingpublic ImageDescriptor getImageDescriptor(ResourceMapping mapping)
ISynchronizationCompareAdaptergetImageDescriptor in interface ISynchronizationCompareAdaptermapping - the mappingpublic int getSynchronizationState(ITeamStateProvider provider, ResourceMapping mapping, int stateMask, IProgressMonitor monitor) throws CoreException
ITeamStateProvider when the synchronization state description for
an element is requested.getSynchronizationState in interface ISynchronizationCompareAdapterprovider - the team state providermapping - the elementstateMask - the state mask that indicates which state flags are desiredmonitor - a progress monitorCoreException
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.