#
Refactoring Change Preview Viewers

###### Identifier:

org.eclipse.ltk.ui.refactoring.changePreviewViewers

###### Since:

3.0

###### Description:

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.

###### Configuration Markup:

<!ELEMENT extension (changePreviewViewer*)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED>

- point - a fully qualified identifier of the target extension point.
- id - an optional identifier of the extension instance.
- name - an optional name of the extension instance.

<!ELEMENT changePreviewViewer (enablement)>

<!ATTLIST changePreviewViewer

id CDATA #REQUIRED

class CDATA #REQUIRED>

- id - unique identifier for the change preview viewer.
- class - the name of the class that provides the implementation.

###### Examples:

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>

###### API Information:

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

Copyright (c) 2001, 2004 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html