Class EReferenceLabelControlSWTRenderer

    • Constructor Detail

      • EReferenceLabelControlSWTRenderer

        public EReferenceLabelControlSWTRenderer​(VControl vElement,
                                                 ViewModelContext viewContext,
                                                 ReportService reportService)
        Default constructor.
        Parameters:
        vElement - the view model element to be rendered
        viewContext - the view context
        reportService - The ReportService
    • Method Detail

      • createBindings

        protected org.eclipse.core.databinding.Binding[] createBindings​(org.eclipse.swt.widgets.Control control)
                                                                 throws DatabindingFailedException
        Create the Bindings for this controls.
        Specified by:
        createBindings in class SimpleControlSWTControlSWTRenderer
        Parameters:
        control - the Control to create the binding for
        Returns:
        all the bindings created by this renderer
        Throws:
        DatabindingFailedException - if the creation of the bindings fails.
        See Also:
        org.eclipse.emf.ecp.view.spi.core.swt.SimpleControlSWTControlSWTRenderer#createBindings(org.eclipse.swt.widgets.Control, org.eclipse.emf.ecore.EStructuralFeature.Setting)
      • getText

        protected java.lang.Object getText​(java.lang.Object value)
        Computes the label text for the referenced object.
        Parameters:
        value - The referenced object
        Returns:
        the label text to display
      • createSWTControl

        protected org.eclipse.swt.widgets.Control createSWTControl​(org.eclipse.swt.widgets.Composite parent2)
                                                            throws DatabindingFailedException
        Creates the Control.
        Specified by:
        createSWTControl in class SimpleControlSWTControlSWTRenderer
        Parameters:
        parent2 - the Composite to use as a parent
        Returns:
        the created control
        Throws:
        DatabindingFailedException - if the creation of the control fails due to databinding problems
        See Also:
        org.eclipse.emf.ecp.view.spi.core.swt.SimpleControlSWTControlSWTRenderer#createSWTControl(org.eclipse.swt.widgets.Composite, org.eclipse.emf.ecore.EStructuralFeature.Setting)