|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.team.ui.mapping.SynchronizationCompareAdapter
A abstract implementation of ISynchronizationCompareAdapter
.
The asCompareInput(ISynchronizationContext, Object)
which will convert file objects to an appropriate compare input.
Clients may subclass this class.
Constructor Summary | |
---|---|
SynchronizationCompareAdapter()
|
Method Summary | |
---|---|
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. |
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.ui.mapping.ISynchronizationCompareAdapter |
---|
restore, save |
Constructor Detail |
public SynchronizationCompareAdapter()
Method Detail |
public ICompareInput asCompareInput(ISynchronizationContext context, Object o)
IFile
. Subclasses should override if compare inputs are
available for other types of model elements.
asCompareInput
in interface ISynchronizationCompareAdapter
context
- the synchronization contexto
- the model object
null
if the model object is
in-sync or otherwise cannot be compared.ISynchronizationCompareAdapter.asCompareInput(ISynchronizationContext, Object)
public boolean hasCompareInput(ISynchronizationContext context, Object object)
ISynchronizationCompareAdapter
true
if ISynchronizationCompareAdapter.asCompareInput(ISynchronizationContext, Object)
would return a value and false
if it would return null
.
hasCompareInput
in interface ISynchronizationCompareAdapter
context
- the synchronization contextobject
- the object.
public String getName(ResourceMapping mapping)
ISynchronizationCompareAdapter
getName
in interface ISynchronizationCompareAdapter
mapping
- the mapping
public String getPathString(ResourceMapping mapping)
ISynchronizationCompareAdapter
getPathString
in interface ISynchronizationCompareAdapter
mapping
- the mapping
public ImageDescriptor getImageDescriptor(ResourceMapping mapping)
ISynchronizationCompareAdapter
getImageDescriptor
in interface ISynchronizationCompareAdapter
mapping
- the mapping
public 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 ISynchronizationCompareAdapter
provider
- the team state providermapping
- the elementstateMask
- the state mask that indicates which state flags are desiredmonitor
- a progress monitor
CoreException
|
Eclipse Platform Release 3.3 |
|||||||||||
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, 2007. All rights reserved.