Class LinkControl

  • All Implemented Interfaces:
    ECPControlSWT
    Direct Known Subclasses:
    EClassifierControl

    @Deprecated
    public class LinkControl
    extends SingleControl
    Deprecated.
    Use LinkControlSWTRenderer instead
    This class defines a Control which is used for displaying EStructuralFeatures which have a reference.
    Author:
    Eugen Neufeld
    • Constructor Detail

      • LinkControl

        public LinkControl()
        Deprecated.
    • Method Detail

      • fillControlComposite

        protected void fillControlComposite​(org.eclipse.swt.widgets.Composite composite)
        Deprecated.
        Description copied from class: SWTControl
        This method must be overridden by concrete classes. Here the widget displaying the data is added to the composite.
        Specified by:
        fillControlComposite in class SWTControl
        Parameters:
        composite - the Composite to add the widget to
      • getNumButtons

        protected int getNumButtons()
        Deprecated.
        Returns:
        number of buttons added by the link control.
      • createButtons

        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.
        Parameters:
        composite - the Composite to place the buttons on
        Returns:
        An array of buttons
      • linkClicked

        protected void linkClicked​(org.eclipse.emf.ecore.EObject value)
        Deprecated.
        This code is called whenever the link of the link widget is clicked. You can overwrite this to change the behavior.
        Parameters:
        value - the EObject that is linked
      • setEditable

        public void setEditable​(boolean isEditable)
        Deprecated.
        Sets the state of the widget to be either editable or not.
        Overrides:
        setEditable in class ECPAbstractControl
        Parameters:
        isEditable - whether to set the widget editable
      • bindValue

        public org.eclipse.core.databinding.Binding bindValue()
        Deprecated.
        Description copied from class: SWTControl
        Triggers the control to perform the databinding.
        Specified by:
        bindValue in class SWTControl
        Returns:
        The Binding
      • getImage

        protected java.lang.Object getImage​(java.lang.Object value)
        Deprecated.
        Returns the image to be used for the given linked value.
        Parameters:
        value - the value
        Returns:
        The image.
      • getLinkText

        protected java.lang.Object getLinkText​(java.lang.Object value)
        Deprecated.
        Returns the link text to be used for the given linked value.
        Parameters:
        value - the value
        Returns:
        The link text.
      • getDeleteButton

        protected org.eclipse.swt.widgets.Button getDeleteButton()
        Deprecated.
        Returns the delete button of this control.
        Returns:
        The delete button of this control.
      • dispose

        public void dispose()
        Deprecated.
        Description copied from class: SingleControl
        Disposes the control. A control which needs specific dispose handling must still call super.dispose.
        Overrides:
        dispose in class SingleControl
      • getUnsetLabelText

        protected java.lang.String getUnsetLabelText()
        Deprecated.
        Description copied from class: SWTControl
        Returns the string for the unset label.
        Specified by:
        getUnsetLabelText in class SWTControl
        Returns:
        The unset label text
      • getUnsetButtonTooltip

        protected java.lang.String getUnsetButtonTooltip()
        Deprecated.
        Description copied from class: SWTControl
        Returns the string for the unset button tooltip.
        Specified by:
        getUnsetButtonTooltip in class SWTControl
        Returns:
        The unset button tooltip
      • getControlsForTooltip

        protected org.eclipse.swt.widgets.Control[] getControlsForTooltip()
        Deprecated.
        Description copied from class: SWTControl
        Method for retrieving all controls which should have the help text as their tooltip.
        Specified by:
        getControlsForTooltip in class SWTControl
        Returns:
        the array of the controls to set a tooltip to
      • getAdapterFactoryItemDelegator

        public org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator getAdapterFactoryItemDelegator()
        Deprecated.
        Returns:
        the adapterFactoryItemDelegator
      • setAdapterFactoryItemDelegator

        public void setAdapterFactoryItemDelegator​(org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator adapterFactoryItemDelegator)
        Deprecated.
        Parameters:
        adapterFactoryItemDelegator - the adapterFactoryItemDelegator to set
      • getComposedAdapterFactory

        public org.eclipse.emf.edit.provider.ComposedAdapterFactory getComposedAdapterFactory()
        Deprecated.
        Returns:
        the composedAdapterFactory
      • setComposedAdapterFactory

        public void setComposedAdapterFactory​(org.eclipse.emf.edit.provider.ComposedAdapterFactory composedAdapterFactory)
        Deprecated.
        Parameters:
        composedAdapterFactory - the composedAdapterFactory to set