public abstract class AbstractControl_PTest extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractControl_PTest.TestObservableValue
Helper Interface for mocking.
|
Modifier and Type | Field and Description |
---|---|
protected static String |
CUSTOM_VARIANT |
Constructor and Description |
---|
AbstractControl_PTest() |
protected static final String CUSTOM_VARIANT
protected void mockControl(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature) throws DatabindingFailedException
DatabindingFailedException
protected void mockDatabindingIsUnsettable() throws DatabindingFailedException
DatabindingFailedException
protected void setMockLabelAlignment(LabelAlignment labelAlignment)
protected void setup() throws DatabindingFailedException
DatabindingFailedException
protected void dispose()
public void testGridDescriptionLabelAlignmentNone()
public void testGridDescriptionLabelAlignmentLeft()
public void renderValidationIconLabelAlignmentNone() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
public void renderValidationIconLabelAlignmentLeft() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
protected void renderLabel(String text) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
protected void labelServiceUsage() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, NoLabelFoundException
EMFFormsLabelProvider
is used to get the labels of a control.protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell gridCell) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
protected abstract void mockControl() throws DatabindingFailedException
DatabindingFailedException
public ViewModelContext getContext()
public void setContext(ViewModelContext context)
context
- the context to setpublic VControl getvControl()
public void setvControl(VControl vControl)
vControl
- the vControl to setpublic org.eclipse.swt.widgets.Shell getShell()
public void setShell(org.eclipse.swt.widgets.Shell shell)
shell
- the shell to setpublic EMFFormsDatabinding getDatabindingService()
public void setDatabindingService(EMFFormsDatabinding databindingService)
databindingService
- the databindingService to setpublic VTViewTemplateProvider getTemplateProvider()
public void setTemplateProvider(VTViewTemplateProvider templateProvider)
templateProvider
- the templateProvider to setpublic AbstractControlSWTRenderer<VControl> getRenderer()
public void setRenderer(AbstractControlSWTRenderer<VControl> renderer)
renderer
- the renderer to setpublic EMFFormsLabelProvider getLabelProvider()
public void setLabelProvider(EMFFormsLabelProvider labelProvider)
labelProvider
- the labelProvider to setCopyright © 2017. All rights reserved.