Interface IMergeViewerContentProvider
- All Superinterfaces:
IContentProvider
- All Known Implementing Classes:
MergeViewerContentProvider
,MirroredMergeViewerContentProvider
A content provider that mediates between a
ContentMergeViewer
's model
and the viewer itself.
Clients may implement this interface.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetAncestorContent
(Object input) Returns the contents for the ancestor side of aContentMergeViewer
.getAncestorImage
(Object input) Returns an optional image for the ancestor side of aContentMergeViewer
.getAncestorLabel
(Object input) Returns the label for the ancestor side of aContentMergeViewer
.getLeftContent
(Object input) Returns the contents for the left side of aContentMergeViewer
.getLeftImage
(Object input) Returns an optional image for the left side of aContentMergeViewer
.getLeftLabel
(Object input) Returns the label for the left side of aContentMergeViewer
.getRightContent
(Object input) Returns the contents for the right side of aContentMergeViewer
.getRightImage
(Object input) Returns an optional image for the right side of aContentMergeViewer
.getRightLabel
(Object input) Returns the label for the right side of aContentMergeViewer
.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 theContentMergeViewer
.void
saveRightContent
(Object input, byte[] bytes) Saves new contents for the right side of theContentMergeViewer
.boolean
showAncestor
(Object input) Returns whether the ancestor side of the given input element should be shown.Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
dispose, inputChanged
-
Method Details
-
getAncestorLabel
Returns the label for the ancestor side of aContentMergeViewer
.- Parameters:
input
- the input object of theContentMergeViewer
- Returns:
- the label for the ancestor side of a
ContentMergeViewer
-
getAncestorImage
Returns an optional image for the ancestor side of aContentMergeViewer
.- Parameters:
input
- the input object of theContentMergeViewer
- Returns:
- the image for the ancestor side of a
ContentMergeViewer
, ornull
if none
-
getAncestorContent
Returns the contents for the ancestor side of aContentMergeViewer
. The interpretation of the returned object depends on the concreteContentMergeViewer
.- Parameters:
input
- the input object of theContentMergeViewer
- Returns:
- the content for the ancestor side of a
ContentMergeViewer
, ornull
if none
-
showAncestor
Returns whether the ancestor side of the given input element should be shown.- Parameters:
input
- the merge viewer's input- Returns:
true
if the ancestor side of the given input element should be shown
-
getLeftLabel
Returns the label for the left side of aContentMergeViewer
.- Parameters:
input
- the input object of theContentMergeViewer
- Returns:
- the label for the left side of a
ContentMergeViewer
-
getLeftImage
Returns an optional image for the left side of aContentMergeViewer
.- Parameters:
input
- the input object of theContentMergeViewer
- Returns:
- the image for the left side of a
ContentMergeViewer
, ornull
if none
-
getLeftContent
Returns the contents for the left side of aContentMergeViewer
. The interpretation of the returned object depends on the concreteContentMergeViewer
.- Parameters:
input
- the input object of theContentMergeViewer
- Returns:
- the content for the left side of a
ContentMergeViewer
, ornull
if none
-
isLeftEditable
Returns whether the left side is editable.- Parameters:
input
- the input object of theContentMergeViewer
- Returns:
true
if the left side of aContentMergeViewer
is editable
-
saveLeftContent
Saves new contents for the left side of theContentMergeViewer
.- Parameters:
input
- the input object of theContentMergeViewer
bytes
- the new contents to save for the left side
-
getRightLabel
Returns the label for the right side of aContentMergeViewer
.- Parameters:
input
- the input object of theContentMergeViewer
- Returns:
- the label for the right side of a
ContentMergeViewer
-
getRightImage
Returns an optional image for the right side of aContentMergeViewer
.- Parameters:
input
- the input object of theContentMergeViewer
- Returns:
- the image for the right side of a
ContentMergeViewer
, ornull
if none
-
getRightContent
Returns the contents for the right side of aContentMergeViewer
. The interpretation of the returned object depends on the concreteContentMergeViewer
.- Parameters:
input
- the input object of theContentMergeViewer
- Returns:
- the content for the right side of a
ContentMergeViewer
, ornull
if none
-
isRightEditable
Returns whether the right side is editable.- Parameters:
input
- the input object of theContentMergeViewer
- Returns:
true
if the right side of aContentMergeViewer
is editable
-
saveRightContent
Saves new contents for the right side of theContentMergeViewer
.- Parameters:
input
- the input object of theContentMergeViewer
bytes
- the new contents to save for the right side
-