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 with
ResourceAttachmentChangeMergeViewerItem
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether this provider wants to handle the givenobject
.Object[]
getChildren
(Object object, IMergeViewerItemProviderConfiguration configuration) Determine the children of the givenobject
getParent
(Object object, IMergeViewerItemProviderConfiguration configuration) Determine the parent of the givenobject
.boolean
hasChildren
(Object object, IMergeViewerItemProviderConfiguration configuration) Indicates whether the givenobject
has children.
-
Constructor Details
-
ResourceAttachmentChangeProvider
public ResourceAttachmentChangeProvider()
-
-
Method Details
-
getParent
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
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
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
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.
-