Class EClassifierControl
- 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
-
- org.eclipse.emf.ecp.edit.internal.swt.reference.LinkControl
-
- org.eclipse.emf.ecp.edit.ecore.swt.internal.EClassifierControl
-
- All Implemented Interfaces:
ECPControlSWT
- Direct Known Subclasses:
EClassifierOnlyEClassControl
,EClassifierOnlyEDataTypeControl
public class EClassifierControl extends LinkControl
This is a control forEClassifier
s.- Author:
- jfaltermeier
-
-
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 EClassifierControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.widgets.Button[]
createButtons(org.eclipse.swt.widgets.Composite composite)
Creates the buttons to delete a reference, add one to an existing and add a new element to be referenced.protected java.util.Set<org.eclipse.emf.ecore.EPackage>
getVisiblePackages()
Returns theEPackage
s to extract the classifiers from.-
Methods inherited from class org.eclipse.emf.ecp.edit.internal.swt.reference.LinkControl
bindValue, dispose, fillControlComposite, getAdapterFactoryItemDelegator, getComposedAdapterFactory, getControlsForTooltip, getDeleteButton, getImage, getLinkText, getNumButtons, getUnsetButtonTooltip, getUnsetLabelText, linkClicked, setAdapterFactoryItemDelegator, setComposedAdapterFactory, setEditable, updateValidationColor
-
Methods inherited from class org.eclipse.emf.ecp.edit.internal.swt.controls.SingleControl
addControlDecoration, handleValidation, resetValidation, showLabel
-
Methods inherited from class org.eclipse.emf.ecp.edit.internal.swt.util.SWTControl
backwardCompatibleHandleValidation, createButtonForAction, createContentControl, createControl, createControls, getCustomUnsetButton, getHelpText, getModelValue, getSystemColor, 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, setEmbedded
-
-
-
-
Method Detail
-
createButtons
protected org.eclipse.swt.widgets.Button[] createButtons(org.eclipse.swt.widgets.Composite composite)
Creates the buttons to delete a reference, add one to an existing and add a new element to be referenced.- Overrides:
createButtons
in classLinkControl
- Parameters:
composite
- theComposite
to place the buttons on- Returns:
- An array of buttons
- See Also:
LinkControl.createButtons(org.eclipse.swt.widgets.Composite)
-
getVisiblePackages
protected java.util.Set<org.eclipse.emf.ecore.EPackage> getVisiblePackages()
Returns theEPackage
s to extract the classifiers from.- Returns:
- the packages
-
-