|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMergeViewerContentProvider
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 |
|---|
String getAncestorLabel(Object input)
ContentMergeViewer.
input - the input object of the ContentMergeViewer
ContentMergeViewerImage 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 input
true if the ancestor side of the given input element should be shownString getLeftLabel(Object input)
ContentMergeViewer.
input - the input object of the ContentMergeViewer
ContentMergeViewerImage 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 editable
void saveLeftContent(Object input,
byte[] bytes)
ContentMergeViewer.
input - the input object of the ContentMergeViewerbytes - the new contents to save for the left sideString getRightLabel(Object input)
ContentMergeViewer.
input - the input object of the ContentMergeViewer
ContentMergeViewerImage 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 editable
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 Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.