public interface IMergeViewerContentProvider extends IContentProvider
ContentMergeViewer's model
and the viewer itself.
Clients may implement this interface.
ContentMergeViewer| Modifier and Type | Method and Description |
|---|---|
Object |
getAncestorContent(Object input)
Returns the contents for the ancestor side of a
ContentMergeViewer. |
Image |
getAncestorImage(Object input)
Returns an optional image for the ancestor side of a
ContentMergeViewer. |
String |
getAncestorLabel(Object input)
Returns the label for the ancestor side of a
ContentMergeViewer. |
Object |
getLeftContent(Object input)
Returns the contents for the left side of a
ContentMergeViewer. |
Image |
getLeftImage(Object input)
Returns an optional image for the left side of a
ContentMergeViewer. |
String |
getLeftLabel(Object input)
Returns the label for the left side of a
ContentMergeViewer. |
Object |
getRightContent(Object input)
Returns the contents for the right side of a
ContentMergeViewer. |
Image |
getRightImage(Object input)
Returns an optional image for the right side of a
ContentMergeViewer. |
String |
getRightLabel(Object input)
Returns the label for the right side of a
ContentMergeViewer. |
boolean |
isLeftEditable(Object input)
Returns whether the left side is editable.
|
boolean |
isRightEditable(Object input)
Returns whether the right side is editable.
|
void |
saveLeftContent(Object input,
byte[] bytes)
Saves new contents for the left side of the
ContentMergeViewer. |
void |
saveRightContent(Object input,
byte[] bytes)
Saves new contents for the right side of the
ContentMergeViewer. |
boolean |
showAncestor(Object input)
Returns whether the ancestor side of the given input element should be shown.
|
dispose, inputChangedString getAncestorLabel(Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewerImage getAncestorImage(Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewer,
or null if noneObject getAncestorContent(Object input)
ContentMergeViewer.
The interpretation of the returned object depends on the concrete ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewer,
or null if noneboolean showAncestor(Object input)
input - the merge viewer's inputtrue if the ancestor side of the given input element should be shownString getLeftLabel(Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewerImage getLeftImage(Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewer,
or null if noneObject getLeftContent(Object input)
ContentMergeViewer.
The interpretation of the returned object depends on the concrete ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewer,
or null if noneboolean isLeftEditable(Object input)
input - the input object of the ContentMergeViewertrue if the left side of a ContentMergeViewer is editablevoid saveLeftContent(Object input, byte[] bytes)
ContentMergeViewer.input - the input object of the ContentMergeViewerbytes - the new contents to save for the left sideString getRightLabel(Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewerImage getRightImage(Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewer,
or null if noneObject getRightContent(Object input)
ContentMergeViewer.
The interpretation of the returned object depends on the concrete ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewer,
or null if noneboolean isRightEditable(Object input)
input - the input object of the ContentMergeViewertrue if the right side of a ContentMergeViewer is editablevoid saveRightContent(Object input, byte[] bytes)
ContentMergeViewer.input - the input object of the ContentMergeViewerbytes - the new contents to save for the right sideGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.