Package org.eclipse.ltk.ui.refactoring
Interface IChangePreviewViewer
-
public interface IChangePreviewViewerViewer to present the preview for aChange.Viewers are associated with a change object via the extension point
org.eclipse.ltk.ui.refactoring.changePreviewViewers. Implementors of this extension point must therefore implement this interface.To ensure visual consistency across all provided preview viewers the widget hierarchy provided through the method
createControl(Composite)has to use aViewFormas its root widget.Clients of this interface should call
createControlbefore callingsetInput.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateControl(Composite parent)Creates the preview viewer's widget hierarchy.ControlgetControl()Returns the preview viewer's SWT control.voidsetInput(ChangePreviewViewerInput input)Sets the preview viewer's input element.
-
-
-
Method Detail
-
createControl
void createControl(Composite parent)
Creates the preview viewer's widget hierarchy. This method is only called once. MethodgetControl()should be used to retrieve the widget hierarchy.- Parameters:
parent- the parent for the widget hierarchy- See Also:
getControl()
-
getControl
Control getControl()
Returns the preview viewer's SWT control.- Returns:
- the preview viewer's SWT control or
nullis the widget hierarchy hasn't been created yet
-
setInput
void setInput(ChangePreviewViewerInput input)
Sets the preview viewer's input element.- Parameters:
input- the input element
-
-