|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A content provider that mediates between a ContentMergeViewer's model
and the viewer itself.
Clients may implement this interface.
ContentMergeViewer| Method Summary | |
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. |
| Methods inherited from interface org.eclipse.jface.viewers.IContentProvider |
dispose, inputChanged |
| Method Detail |
public String getAncestorLabel(Object input)
ContentMergeViewer.
input - the input object of the ContentMergeViewer
ContentMergeViewerpublic Image getAncestorImage(Object input)
ContentMergeViewer.
input - the input object of the ContentMergeViewer
ContentMergeViewer,
or null if nonepublic Object 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 nonepublic boolean showAncestor(Object input)
true if the ancestor side of the given input element should be shownpublic String getLeftLabel(Object input)
ContentMergeViewer.
input - the input object of the ContentMergeViewer
ContentMergeViewerpublic Image getLeftImage(Object input)
ContentMergeViewer.
input - the input object of the ContentMergeViewer
ContentMergeViewer,
or null if nonepublic Object 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 nonepublic boolean isLeftEditable(Object input)
input - the input object of the ContentMergeViewer
true if the left side of a ContentMergeViewer is editable
public void saveLeftContent(Object input,
byte[] bytes)
ContentMergeViewer.
input - the input object of the ContentMergeViewerbytes - the new contents to save for the left sidepublic String getRightLabel(Object input)
ContentMergeViewer.
input - the input object of the ContentMergeViewer
ContentMergeViewerpublic Image getRightImage(Object input)
ContentMergeViewer.
input - the input object of the ContentMergeViewer
ContentMergeViewer,
or null if nonepublic Object 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 nonepublic boolean isRightEditable(Object input)
input - the input object of the ContentMergeViewer
true if the right side of a ContentMergeViewer is editable
public void saveRightContent(Object input,
byte[] bytes)
ContentMergeViewer.
input - the input object of the ContentMergeViewerbytes - the new contents to save for the right side
|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||