Constructor and Description |
---|
Preview(org.eclipse.swt.widgets.Composite parent)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanSampleData()
Clears the data that is rendered in the preview.
|
void |
clear()
Removes the previous rendering result from the parent Composite.
|
org.eclipse.emf.ecore.EObject |
getSampleData() |
boolean |
isUpdateAutomatic() |
void |
registerForViewModelChanges()
Adds adapter to listen to changes in the currently cached view model.
|
void |
removeAdapter() |
void |
removeView()
Removes the cached view.
|
void |
render(VView view,
org.eclipse.emf.ecore.EObject sampleData)
Render the contents of the
VView . |
void |
setUpdateAutomatic(boolean canAutomaticallyRender) |
public Preview(org.eclipse.swt.widgets.Composite parent)
parent
- - the Composite
in which to renderpublic void render(VView view, org.eclipse.emf.ecore.EObject sampleData)
VView
.view
- the VView
sampleData
- the sample data to be displayed in the viewpublic void registerForViewModelChanges()
public void removeAdapter()
public void clear()
public void removeView()
public boolean isUpdateAutomatic()
public void setUpdateAutomatic(boolean canAutomaticallyRender)
canAutomaticallyRender
- the canAutomaticallyRender to setpublic void cleanSampleData()
public org.eclipse.emf.ecore.EObject getSampleData()
EObject
containing the data that is being rendered in the preview.Copyright © 2018. All rights reserved.