@Deprecated public class LinkControl extends SingleControl
EStructuralFeature
s which have a reference.CUSTOM_VARIANT, VALIDATION_ERROR_ICON, validationLabel
Constructor and Description |
---|
LinkControl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.databinding.Binding |
bindValue()
Deprecated.
Triggers the control to perform the databinding.
|
protected org.eclipse.swt.widgets.Button[] |
createButtons(org.eclipse.swt.widgets.Composite composite)
Deprecated.
Creates the buttons to delete a reference, add one to an existing and add a new element to be referenced.
|
void |
dispose()
Deprecated.
Disposes the control.
|
protected void |
fillControlComposite(org.eclipse.swt.widgets.Composite composite)
Deprecated.
This method must be overridden by concrete classes.
|
org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator |
getAdapterFactoryItemDelegator()
Deprecated.
|
org.eclipse.emf.edit.provider.ComposedAdapterFactory |
getComposedAdapterFactory()
Deprecated.
|
protected org.eclipse.swt.widgets.Control[] |
getControlsForTooltip()
Deprecated.
Method for retrieving all controls which should have the help text as their tooltip.
|
protected org.eclipse.swt.widgets.Button |
getDeleteButton()
Deprecated.
Returns the delete button of this control.
|
protected Object |
getImage(Object value)
Deprecated.
Returns the image to be used for the given linked
value . |
protected Object |
getLinkText(Object value)
Deprecated.
Returns the link text to be used for the given linked
value . |
protected int |
getNumButtons()
Deprecated.
|
protected String |
getUnsetButtonTooltip()
Deprecated.
Returns the string for the unset button tooltip.
|
protected String |
getUnsetLabelText()
Deprecated.
Returns the string for the unset label.
|
protected void |
linkClicked(org.eclipse.emf.ecore.EObject value)
Deprecated.
This code is called whenever the link of the link widget is clicked.
|
void |
setAdapterFactoryItemDelegator(org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator adapterFactoryItemDelegator)
Deprecated.
|
void |
setComposedAdapterFactory(org.eclipse.emf.edit.provider.ComposedAdapterFactory composedAdapterFactory)
Deprecated.
|
void |
setEditable(boolean isEditable)
Deprecated.
Sets the state of the widget to be either editable or not.
|
protected void |
updateValidationColor(org.eclipse.swt.graphics.Color color)
Deprecated.
Allows controls to supply a second visual effect for controls on validation.
|
addControlDecoration, handleValidation, resetValidation, showLabel
backwardCompatibleHandleValidation, createButtonForAction, createContentControl, createControl, createControls, getCustomUnsetButton, getHelpText, getModelValue, getSystemColor, getValidationBackgroundColor, getValidationIcon, isEditable, setObservableValue, showUnsetLabel
applyValidation, enabledmentChanged, getControl, getDataBindingContext, getDomainModelReference, getEditingDomain, getEditingDomain, getFirstSetting, getFirstStructuralFeature, getItemPropertyDescriptor, getLocale, getService, getViewModelContext, init, isEmbedded, postInit, setEmbedded
protected void fillControlComposite(org.eclipse.swt.widgets.Composite composite)
SWTControl
fillControlComposite
in class SWTControl
composite
- the Composite
to add the widget toprotected int getNumButtons()
protected org.eclipse.swt.widgets.Button[] createButtons(org.eclipse.swt.widgets.Composite composite)
composite
- the Composite
to place the buttons onprotected void linkClicked(org.eclipse.emf.ecore.EObject value)
value
- the EObject that is linkedpublic void setEditable(boolean isEditable)
setEditable
in class ECPAbstractControl
isEditable
- whether to set the widget editablepublic org.eclipse.core.databinding.Binding bindValue()
SWTControl
bindValue
in class SWTControl
Binding
protected Object getImage(Object value)
value
.value
- the valueprotected Object getLinkText(Object value)
value
.value
- the valueprotected org.eclipse.swt.widgets.Button getDeleteButton()
protected void updateValidationColor(org.eclipse.swt.graphics.Color color)
updateValidationColor
in class SingleControl
color
- the color to set, null if the default background color should be setSingleControl.updateValidationColor(org.eclipse.swt.graphics.Color)
public void dispose()
SingleControl
dispose
in class SingleControl
protected String getUnsetLabelText()
SWTControl
getUnsetLabelText
in class SWTControl
protected String getUnsetButtonTooltip()
SWTControl
getUnsetButtonTooltip
in class SWTControl
protected org.eclipse.swt.widgets.Control[] getControlsForTooltip()
SWTControl
getControlsForTooltip
in class SWTControl
public org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator getAdapterFactoryItemDelegator()
public void setAdapterFactoryItemDelegator(org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator adapterFactoryItemDelegator)
adapterFactoryItemDelegator
- the adapterFactoryItemDelegator to setpublic org.eclipse.emf.edit.provider.ComposedAdapterFactory getComposedAdapterFactory()
public void setComposedAdapterFactory(org.eclipse.emf.edit.provider.ComposedAdapterFactory composedAdapterFactory)
composedAdapterFactory
- the composedAdapterFactory to setCopyright © 2019. All rights reserved.