Class SingleControl
- java.lang.Object
-
- org.eclipse.emf.ecp.edit.spi.ECPAbstractControl
-
- org.eclipse.emf.ecp.edit.internal.swt.util.SWTControl
-
- org.eclipse.emf.ecp.edit.internal.swt.controls.SingleControl
-
- All Implemented Interfaces:
ECPControlSWT
- Direct Known Subclasses:
AbstractTextControl
,BooleanControl
,DateTimeControl
,EEnumControl
,LinkControl
@Deprecated public abstract class SingleControl extends SWTControl
Deprecated.This class defines a SingleControl which is used for displayingEStructuralFeature
s which have maximum 1 value.- Author:
- Eugen Neufeld
-
-
Field Summary
-
Fields inherited from class org.eclipse.emf.ecp.edit.internal.swt.util.SWTControl
CUSTOM_VARIANT, VALIDATION_ERROR_ICON, validationLabel
-
-
Constructor Summary
Constructors Constructor Description SingleControl()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addControlDecoration(org.eclipse.swt.widgets.Control control)
Deprecated.void
dispose()
Deprecated.Disposes the control.void
handleValidation(org.eclipse.emf.common.util.Diagnostic diagnostic)
Deprecated.void
resetValidation()
Deprecated.boolean
showLabel()
Deprecated.protected void
updateValidationColor(org.eclipse.swt.graphics.Color color)
Deprecated.Allows controls to supply a second visual effect for controls on validation.-
Methods inherited from class org.eclipse.emf.ecp.edit.internal.swt.util.SWTControl
backwardCompatibleHandleValidation, bindValue, createButtonForAction, createContentControl, createControl, createControls, fillControlComposite, getControlsForTooltip, getCustomUnsetButton, getHelpText, getModelValue, getSystemColor, getUnsetButtonTooltip, getUnsetLabelText, getValidationBackgroundColor, getValidationIcon, isEditable, setObservableValue, showUnsetLabel
-
Methods inherited from class org.eclipse.emf.ecp.edit.spi.ECPAbstractControl
applyValidation, enabledmentChanged, getControl, getDataBindingContext, getDomainModelReference, getEditingDomain, getEditingDomain, getFirstSetting, getFirstStructuralFeature, getItemPropertyDescriptor, getLocale, getService, getViewModelContext, init, isEmbedded, postInit, setEditable, setEmbedded
-
-
-
-
Method Detail
-
handleValidation
@Deprecated public void handleValidation(org.eclipse.emf.common.util.Diagnostic diagnostic)
Deprecated.Handle live validation.- Overrides:
handleValidation
in classECPAbstractControl
- Parameters:
diagnostic
- of type Diagnostic
-
updateValidationColor
protected void updateValidationColor(org.eclipse.swt.graphics.Color color)
Deprecated.Allows controls to supply a second visual effect for controls on validation. The color to set is provided as the parameter.- Parameters:
color
- the color to set, null if the default background color should be set
-
addControlDecoration
protected void addControlDecoration(org.eclipse.swt.widgets.Control control)
Deprecated.
-
resetValidation
@Deprecated public void resetValidation()
Deprecated.Reset the validation status 'ok'.- Overrides:
resetValidation
in classECPAbstractControl
-
dispose
public void dispose()
Deprecated.Disposes the control. A control which needs specific dispose handling must still call super.dispose.- Overrides:
dispose
in classSWTControl
-
showLabel
@Deprecated public boolean showLabel()
Deprecated.Whether a label should be shown for this control.- Overrides:
showLabel
in classECPAbstractControl
- Returns:
- true if a label should be created, false otherwise
-
-