Refactoring Status Context Viewers

org.eclipse.ltk.ui.refactoring.statusContextViewers

3.0

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

context
the context object managed by the refactoring status entry that is to be presented in the user interface.

Variables can be accessed using the <with variable="..."/> expression. The default variable used during expression evaluation is bound to the context variable.

<!ELEMENT extension (statusContextViewer*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT statusContextViewer (enablement)>

<!ATTLIST statusContextViewer

id    CDATA #REQUIRED

class CDATA #REQUIRED>


The example below contributes a status context viewer for FileStatusContext objects.
   

<extension point=

"org.eclipse.ltk.ui.refactoring.statusContextViewers"

>

<statusContextViewer class=

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

id=

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

>

<enablement>

<instanceof value=

"org.eclipse.ltk.core.refactoring.FileStatusContext"

/>

</enablement>

</statusContextViewer>

</extension>

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