@Deprecated public abstract class ECPAbstractControl extends Object
ECPAbstractControl
is the abstract class describing a control.
This class provides the necessary common access methods.Constructor and Description |
---|
ECPAbstractControl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyValidation(VDiagnostic diagnostic)
Deprecated.
Override this method in order to handle validation.
|
protected void |
backwardCompatibleHandleValidation()
Deprecated.
Helper method to keep the old validation.
|
void |
dispose()
Deprecated.
Disposes the control.
|
protected void |
enabledmentChanged(boolean enabled)
Deprecated.
Notifies a control, that its enablement state has changed.
|
protected VControl |
getControl()
Deprecated.
Return the
VControl . |
org.eclipse.core.databinding.DataBindingContext |
getDataBindingContext()
Deprecated.
Returns a
DataBindingContext for this control. |
protected VDomainModelReference |
getDomainModelReference()
Deprecated.
Returns the
VDomainModelReference set for this control. |
protected org.eclipse.emf.edit.domain.EditingDomain |
getEditingDomain()
Deprecated.
|
protected org.eclipse.emf.edit.domain.EditingDomain |
getEditingDomain(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
Deprecated.
Returns the
EditingDomain for the provided EStructuralFeature.Setting . |
org.eclipse.emf.ecore.EStructuralFeature.Setting |
getFirstSetting()
Deprecated.
Returns the first setting for this control.
|
org.eclipse.emf.ecore.EStructuralFeature |
getFirstStructuralFeature()
Deprecated.
Return the
EStructuralFeature of this control. |
org.eclipse.emf.edit.provider.IItemPropertyDescriptor |
getItemPropertyDescriptor(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
Deprecated.
Return the
IItemPropertyDescriptor describing this EStructuralFeature.Setting . |
protected Locale |
getLocale()
Deprecated.
Returns the current Locale.
|
protected <T> T |
getService(Class<T> serviceClass)
Deprecated.
This method allows to get a service from the view model context.
|
protected ViewModelContext |
getViewModelContext()
Deprecated.
Return the
ViewModelContext . |
void |
handleValidation(org.eclipse.emf.common.util.Diagnostic diagnostic)
Deprecated.
|
void |
init(ViewModelContext viewModelContext,
VControl control)
Deprecated.
This method is called by the framework to instantiate the
ECPAbstractControl . |
protected boolean |
isEmbedded()
Deprecated.
Whether a control is embedded.
|
protected void |
postInit()
Deprecated.
Overwrite this method to implement control specific operations which must be executed after the init but before
the rendering.
|
void |
resetValidation()
Deprecated.
|
void |
setEditable(boolean isEditable)
Deprecated.
|
void |
setEmbedded(boolean embedded)
Deprecated.
Sets whether this control is used as an embedded control.
|
boolean |
showLabel()
Deprecated.
use the labelAlignment of the control model element
|
public final void init(ViewModelContext viewModelContext, VControl control)
ECPAbstractControl
.viewModelContext
- the ViewModelContext
to use by this ECPAbstractControl
.control
- the VControl
of this controlprotected void postInit()
protected void enabledmentChanged(boolean enabled)
enabled
- the new enablement valueprotected void applyValidation(VDiagnostic diagnostic)
diagnostic
- the current VDiagnostic
public org.eclipse.emf.edit.provider.IItemPropertyDescriptor getItemPropertyDescriptor(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
IItemPropertyDescriptor
describing this EStructuralFeature.Setting
.setting
- the EStructuralFeature.Setting
to use for identifying the IItemPropertyDescriptor
.IItemPropertyDescriptor
protected final VControl getControl()
VControl
.VControl
of this controlprotected final ViewModelContext getViewModelContext()
ViewModelContext
.ViewModelContext
of this controlpublic final org.eclipse.emf.ecore.EStructuralFeature.Setting getFirstSetting()
IllegalArgumentException
if no settings can be foundpublic final org.eclipse.emf.ecore.EStructuralFeature getFirstStructuralFeature()
EStructuralFeature
of this control.EStructuralFeature
public final org.eclipse.core.databinding.DataBindingContext getDataBindingContext()
DataBindingContext
for this control.DataBindingContext
public void dispose()
protected final boolean isEmbedded()
public final void setEmbedded(boolean embedded)
embedded
- whether the control is used as an embedded controlprotected final org.eclipse.emf.edit.domain.EditingDomain getEditingDomain(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
EditingDomain
for the provided EStructuralFeature.Setting
.setting
- the provided EStructuralFeature.Setting
EditingDomain
of this EStructuralFeature.Setting
protected final <T> T getService(Class<T> serviceClass)
T
- the type of the serviceserviceClass
- the type of the service to getprotected final Locale getLocale()
Locale
protected final VDomainModelReference getDomainModelReference()
VDomainModelReference
set for this control.VDomainModelReference
of this control@Deprecated protected final org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
EditingDomain
for the set VDomainModelReference
.EditingDomain
for this controlprotected void backwardCompatibleHandleValidation()
@Deprecated public void handleValidation(org.eclipse.emf.common.util.Diagnostic diagnostic)
diagnostic
- of type Diagnostic@Deprecated public void resetValidation()
@Deprecated public boolean showLabel()
@Deprecated public void setEditable(boolean isEditable)
isEditable
- whether to set the widget editableCopyright © 2016. All rights reserved.