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 booleancanHandle(Object object)Indicates whether this provider wants to handle the givenobject.Object[]getChildren(Object object, IMergeViewerItemProviderConfiguration configuration)Determine the children of the givenobjectObjectgetParent(Object object, IMergeViewerItemProviderConfiguration configuration)Determine the parent of the givenobject.booleanhasChildren(Object object, IMergeViewerItemProviderConfiguration configuration)Indicates whether the givenobjecthas children.
-
-
-
Method Detail
-
getParent
public Object getParent(Object object, IMergeViewerItemProviderConfiguration configuration)
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
public Object[] getChildren(Object object, IMergeViewerItemProviderConfiguration configuration)
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
public boolean hasChildren(Object object, IMergeViewerItemProviderConfiguration configuration)
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
public boolean canHandle(Object object)
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.
-
-