public abstract class SynchronizationCompareAdapter extends Object implements ISynchronizationCompareAdapter
ISynchronizationCompareAdapter
. Most of the methods
are no-ops except for the asCompareInput(ISynchronizationContext, Object)
which will convert file objects to an appropriate compare input.
Clients may subclass this class.
Constructor and Description |
---|
SynchronizationCompareAdapter() |
Modifier and Type | Method and Description |
---|---|
ICompareInput |
asCompareInput(ISynchronizationContext context,
Object o)
Default implementaton that is capable of returning a compare input for objects
that adapt to
IFile . |
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.
|
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, wait
restore, save
public ICompareInput asCompareInput(ISynchronizationContext context, Object o)
IFile
. Subclasses shoudl override if compare inputs are
availabel for other types of model elements.asCompareInput
in interface ISynchronizationCompareAdapter
context
- 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)
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 mappingpublic String getPathString(ResourceMapping mapping)
ISynchronizationCompareAdapter
getPathString
in interface ISynchronizationCompareAdapter
mapping
- the mappingGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.