Class ResourceAttachmentChangeProvider
- java.lang.Object
-
- org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl.ResourceAttachmentChangeProvider
-
- All Implemented Interfaces:
IMergeViewerItemContentProvider
,IOptionalProvider
public class ResourceAttachmentChangeProvider extends Object implements IMergeViewerItemContentProvider
Legacy Provider to keep backward compatibility withResourceAttachmentChangeMergeViewerItem
.
-
-
Constructor Summary
Constructors Constructor Description ResourceAttachmentChangeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(Object object)
Indicates whether this provider wants to handle the givenobject
.Object[]
getChildren(Object object, IMergeViewerItemProviderConfiguration configuration)
Determine the children of the givenobject
Object
getParent(Object object, IMergeViewerItemProviderConfiguration configuration)
Determine the parent of the givenobject
.boolean
hasChildren(Object object, IMergeViewerItemProviderConfiguration configuration)
Indicates whether the givenobject
has children.
-
-
-
Method Detail
-
getParent
public Object getParent(Object object, IMergeViewerItemProviderConfiguration configuration)
Determine the parent of the givenobject
.- Specified by:
getParent
in interfaceIMergeViewerItemContentProvider
- Parameters:
object
- theObject
for which the parent is to be determined.configuration
- theIMergeViewerItemProviderConfiguration
.- Returns:
- the determined parent object,
null
if there is none.
-
getChildren
public Object[] getChildren(Object object, IMergeViewerItemProviderConfiguration configuration)
Determine the children of the givenobject
- Specified by:
getChildren
in interfaceIMergeViewerItemContentProvider
- Parameters:
object
- theObject
for which the children are to be determined.configuration
- theIMergeViewerItemProviderConfiguration
.- Returns:
- an array with the determined children, an empty array if there are none.
-
hasChildren
public boolean hasChildren(Object object, IMergeViewerItemProviderConfiguration configuration)
Indicates whether the givenobject
has children.- Specified by:
hasChildren
in interfaceIMergeViewerItemContentProvider
- Parameters:
object
- theObject
for which it is indicated whether it has children.configuration
- theIMergeViewerItemProviderConfiguration
.- Returns:
true
if the given object has children,false
otherwise.
-
canHandle
public boolean canHandle(Object object)
Indicates whether this provider wants to handle the givenobject
.- Specified by:
canHandle
in interfaceIOptionalProvider
- Parameters:
object
- theObject
.- Returns:
true
if the provider wants to handle the givenobject
,false
otherwise.
-
-