Interface IMergeViewerContentProvider
-
- All Superinterfaces:
IContentProvider
public interface IMergeViewerContentProvider extends IContentProvider
A content provider that mediates between aContentMergeViewer's model and the viewer itself.Clients may implement this interface.
- See Also:
ContentMergeViewer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetAncestorContent(Object input)Returns the contents for the ancestor side of aContentMergeViewer.ImagegetAncestorImage(Object input)Returns an optional image for the ancestor side of aContentMergeViewer.StringgetAncestorLabel(Object input)Returns the label for the ancestor side of aContentMergeViewer.ObjectgetLeftContent(Object input)Returns the contents for the left side of aContentMergeViewer.ImagegetLeftImage(Object input)Returns an optional image for the left side of aContentMergeViewer.StringgetLeftLabel(Object input)Returns the label for the left side of aContentMergeViewer.ObjectgetRightContent(Object input)Returns the contents for the right side of aContentMergeViewer.ImagegetRightImage(Object input)Returns an optional image for the right side of aContentMergeViewer.StringgetRightLabel(Object input)Returns the label for the right side of aContentMergeViewer.booleanisLeftEditable(Object input)Returns whether the left side is editable.booleanisRightEditable(Object input)Returns whether the right side is editable.voidsaveLeftContent(Object input, byte[] bytes)Saves new contents for the left side of theContentMergeViewer.voidsaveRightContent(Object input, byte[] bytes)Saves new contents for the right side of theContentMergeViewer.booleanshowAncestor(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 Detail
-
getAncestorLabel
String getAncestorLabel(Object input)
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
Image getAncestorImage(Object input)
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, ornullif none
-
getAncestorContent
Object getAncestorContent(Object input)
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, ornullif none
-
showAncestor
boolean showAncestor(Object input)
Returns whether the ancestor side of the given input element should be shown.- Parameters:
input- the merge viewer's input- Returns:
trueif the ancestor side of the given input element should be shown
-
getLeftLabel
String getLeftLabel(Object input)
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
Image getLeftImage(Object input)
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, ornullif none
-
getLeftContent
Object getLeftContent(Object input)
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, ornullif none
-
isLeftEditable
boolean isLeftEditable(Object input)
Returns whether the left side is editable.- Parameters:
input- the input object of theContentMergeViewer- Returns:
trueif the left side of aContentMergeVieweris editable
-
saveLeftContent
void saveLeftContent(Object input, byte[] bytes)
Saves new contents for the left side of theContentMergeViewer.- Parameters:
input- the input object of theContentMergeViewerbytes- the new contents to save for the left side
-
getRightLabel
String getRightLabel(Object input)
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
Image getRightImage(Object input)
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, ornullif none
-
getRightContent
Object getRightContent(Object input)
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, ornullif none
-
isRightEditable
boolean isRightEditable(Object input)
Returns whether the right side is editable.- Parameters:
input- the input object of theContentMergeViewer- Returns:
trueif the right side of aContentMergeVieweris editable
-
saveRightContent
void saveRightContent(Object input, byte[] bytes)
Saves new contents for the right side of theContentMergeViewer.- Parameters:
input- the input object of theContentMergeViewerbytes- the new contents to save for the right side
-
-