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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether this provider wants to handle the givenobject.Object[]getChildren(Object object, IMergeViewerItemProviderConfiguration configuration) Determine the children of the givenobjectgetParent(Object object, IMergeViewerItemProviderConfiguration configuration) Determine the parent of the givenobject.booleanhasChildren(Object object, IMergeViewerItemProviderConfiguration configuration) Indicates whether the givenobjecthas children.
-
Constructor Details
-
ResourceAttachmentChangeProvider
public ResourceAttachmentChangeProvider()
-
-
Method Details
-
getParent
Determine the parent of the givenobject.- Specified by:
getParentin interfaceIMergeViewerItemContentProvider- Parameters:
object- theObjectfor which the parent is to be determined.configuration- theIMergeViewerItemProviderConfiguration.- Returns:
- the determined parent object,
nullif there is none.
-
getChildren
Determine the children of the givenobject- Specified by:
getChildrenin interfaceIMergeViewerItemContentProvider- Parameters:
object- theObjectfor 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 givenobjecthas children.- Specified by:
hasChildrenin interfaceIMergeViewerItemContentProvider- Parameters:
object- theObjectfor which it is indicated whether it has children.configuration- theIMergeViewerItemProviderConfiguration.- Returns:
trueif the given object has children,falseotherwise.
-
canHandle
Indicates whether this provider wants to handle the givenobject.- Specified by:
canHandlein interfaceIOptionalProvider- Parameters:
object- theObject.- Returns:
trueif the provider wants to handle the givenobject,falseotherwise.
-