public interface IMergeViewerContentProvider extends IContentProvider
ContentMergeViewer's model
and the viewer itself.
Clients may implement this interface.
ContentMergeViewer| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAncestorContent(java.lang.Object input)
Returns the contents for the ancestor side of a
ContentMergeViewer. |
Image |
getAncestorImage(java.lang.Object input)
Returns an optional image for the ancestor side of a
ContentMergeViewer. |
java.lang.String |
getAncestorLabel(java.lang.Object input)
Returns the label for the ancestor side of a
ContentMergeViewer. |
java.lang.Object |
getLeftContent(java.lang.Object input)
Returns the contents for the left side of a
ContentMergeViewer. |
Image |
getLeftImage(java.lang.Object input)
Returns an optional image for the left side of a
ContentMergeViewer. |
java.lang.String |
getLeftLabel(java.lang.Object input)
Returns the label for the left side of a
ContentMergeViewer. |
java.lang.Object |
getRightContent(java.lang.Object input)
Returns the contents for the right side of a
ContentMergeViewer. |
Image |
getRightImage(java.lang.Object input)
Returns an optional image for the right side of a
ContentMergeViewer. |
java.lang.String |
getRightLabel(java.lang.Object input)
Returns the label for the right side of a
ContentMergeViewer. |
boolean |
isLeftEditable(java.lang.Object input)
Returns whether the left side is editable.
|
boolean |
isRightEditable(java.lang.Object input)
Returns whether the right side is editable.
|
void |
saveLeftContent(java.lang.Object input,
byte[] bytes)
Saves new contents for the left side of the
ContentMergeViewer. |
void |
saveRightContent(java.lang.Object input,
byte[] bytes)
Saves new contents for the right side of the
ContentMergeViewer. |
boolean |
showAncestor(java.lang.Object input)
Returns whether the ancestor side of the given input element should be shown.
|
dispose, inputChangedjava.lang.String getAncestorLabel(java.lang.Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewerImage getAncestorImage(java.lang.Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewer,
or null if nonejava.lang.Object getAncestorContent(java.lang.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(java.lang.Object input)
input - the merge viewer's inputtrue if the ancestor side of the given input element should be shownjava.lang.String getLeftLabel(java.lang.Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewerImage getLeftImage(java.lang.Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewer,
or null if nonejava.lang.Object getLeftContent(java.lang.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(java.lang.Object input)
input - the input object of the ContentMergeViewertrue if the left side of a ContentMergeViewer is editablevoid saveLeftContent(java.lang.Object input,
byte[] bytes)
ContentMergeViewer.input - the input object of the ContentMergeViewerbytes - the new contents to save for the left sidejava.lang.String getRightLabel(java.lang.Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewerImage getRightImage(java.lang.Object input)
ContentMergeViewer.input - the input object of the ContentMergeViewerContentMergeViewer,
or null if nonejava.lang.Object getRightContent(java.lang.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(java.lang.Object input)
input - the input object of the ContentMergeViewertrue if the right side of a ContentMergeViewer is editablevoid saveRightContent(java.lang.Object input,
byte[] bytes)
ContentMergeViewer.input - the input object of the ContentMergeViewerbytes - the new contents to save for the right side
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.