|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An IReconciler
defines and maintains a model of the content
of the text viewer's document in the presence of changes applied to this
document. An IReconciler
is a ITextViewer
add-on.
Reconcilers are assumed to be asynchronous, i.e. they allow a certain temporal window of inconsistency between the document and the model of the content of this document.
Reconcilers have a list of IReconcilingStrategy
objects
each of which is registered for a particular document content type.
The reconciler uses the strategy objects to react on the changes applied
to the text viewer's document.
The interface can be implemented by clients. By default, clients use
Reconciler
as the standard implementer of this interface.
ITextViewer
,
IReconcilingStrategy
Method Summary | |
IReconcilingStrategy |
getReconcilingStrategy(String contentType)
Returns the reconciling strategy registered with the reconciler for the specified content type. |
void |
install(ITextViewer textViewer)
Installs the reconciler on the given text viewer. |
void |
uninstall()
Removes the reconciler from the text viewer it has previously been installed on. |
Method Detail |
public void install(ITextViewer textViewer)
uninstall
is called.
textViewer
- the viewer on which the reconciler is installedpublic void uninstall()
public IReconcilingStrategy getReconcilingStrategy(String contentType)
contentType
- the content type for which to determine the reconciling strategy
null
if there is no such strategy
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |