Interface IMergeViewerItemContentProvider
- All Superinterfaces:
IOptionalProvider
- All Known Implementing Classes:
ResourceAttachmentChangeProvider,TreeMergeViewerItemContentProvider
public interface IMergeViewerItemContentProvider extends IOptionalProvider
Interface for specialized
tree content providers for the comparison content
merge viewer.- Since:
- 4.4
-
Method Summary
Modifier and Type Method Description java.lang.Object[]getChildren(java.lang.Object object, IMergeViewerItemProviderConfiguration configuration)Determine the children of the givenobjectjava.lang.ObjectgetParent(java.lang.Object object, IMergeViewerItemProviderConfiguration configuration)Determine the parent of the givenobject.booleanhasChildren(java.lang.Object object, IMergeViewerItemProviderConfiguration configuration)Indicates whether the givenobjecthas children.Methods inherited from interface org.eclipse.emf.compare.rcp.ui.mergeviewer.item.provider.IOptionalProvider
canHandle
-
Method Details
-
getParent
java.lang.Object getParent(java.lang.Object object, IMergeViewerItemProviderConfiguration configuration)Determine the parent of the givenobject.- Parameters:
object- theObjectfor which the parent is to be determined.configuration- theIMergeViewerItemProviderConfiguration.- Returns:
- the determined parent object,
nullif there is none.
-
getChildren
java.lang.Object[] getChildren(java.lang.Object object, IMergeViewerItemProviderConfiguration configuration)Determine the children of the givenobject- 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.- Parameters:
object- theObjectfor which it is indicated whether it has children.configuration- theIMergeViewerItemProviderConfiguration.- Returns:
trueif the given object has children,falseotherwise.
-