Refactoring Change Preview Viewers

org.eclipse.ltk.ui.refactoring.changePreviewViewers

3.0

This extension point is used to define a special viewer capable to present change objects. The reader of the extension point provides the following predefined variables which can be accessed during expression evaluation using the <with variable="..."/> tag:

change
the change object to present a preview for

The default variable used during expression evaluation is bound to the change variable.

<!ELEMENT extension (changePreviewViewer*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT changePreviewViewer (enablement)>

<!ATTLIST changePreviewViewer

id    CDATA #REQUIRED

class CDATA #REQUIRED>


The example below contributes a preview viewer for text change objects.
   

<extension point=

"org.eclipse.ltk.ui.refactoring.changePreviewViewers"

>

<changePreviewViewer class=

"org.eclipse.ltk.internal.ui.refactoring.TextChangePreviewViewer"

id=

"org.eclipse.ltk.internal.ui.refactoring.textChangePreviewViewer"

>

<enablement>

<instanceof value=

"org.eclipse.ltk.core.refactoring.TextChange"

/>

</enablement>

</changePreviewViewer>

</extension>

The contributed class must extend org.eclipse.ltk.ui.refactoring.IChangePreviewViewer