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, inputChanged
String getAncestorLabel(Object input)
ContentMergeViewer
.input
- the input object of the ContentMergeViewer
ContentMergeViewer
Image getAncestorImage(Object input)
ContentMergeViewer
.input
- the input object of the ContentMergeViewer
ContentMergeViewer
,
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 ContentMergeViewer
ContentMergeViewer
,
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 ContentMergeViewer
ContentMergeViewer
Image getLeftImage(Object input)
ContentMergeViewer
.input
- the input object of the ContentMergeViewer
ContentMergeViewer
,
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 ContentMergeViewer
ContentMergeViewer
,
or null
if noneboolean isLeftEditable(Object input)
input
- the input object of the ContentMergeViewer
true
if the left side of a ContentMergeViewer
is editablevoid saveLeftContent(Object input, byte[] bytes)
ContentMergeViewer
.input
- the input object of the ContentMergeViewer
bytes
- the new contents to save for the left sideString getRightLabel(Object input)
ContentMergeViewer
.input
- the input object of the ContentMergeViewer
ContentMergeViewer
Image getRightImage(Object input)
ContentMergeViewer
.input
- the input object of the ContentMergeViewer
ContentMergeViewer
,
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 ContentMergeViewer
ContentMergeViewer
,
or null
if noneboolean isRightEditable(Object input)
input
- the input object of the ContentMergeViewer
true
if the right side of a ContentMergeViewer
is editablevoid saveRightContent(Object input, byte[] bytes)
ContentMergeViewer
.input
- the input object of the ContentMergeViewer
bytes
- the new contents to save for the right side
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.