Interface TableControlService


  • public interface TableControlService
    Service used by the TableControlSWTRenderer to customize button behaviour.
    Since:
    1.9
    Author:
    Johannes Faltermeier
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Optional<org.eclipse.emf.ecore.EObject> createNewElement​(org.eclipse.emf.ecore.EClass clazz, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature structuralFeature)
      This method is called by the TableControlSWTRenderer when the add button was pressed.
      void doubleClick​(VTableControl table, org.eclipse.emf.ecore.EObject eObject)
      Called when an object in the table is double clicked.
    • Method Detail

      • createNewElement

        Optional<org.eclipse.emf.ecore.EObject> createNewElement​(org.eclipse.emf.ecore.EClass clazz,
                                                                 org.eclipse.emf.ecore.EObject eObject,
                                                                 org.eclipse.emf.ecore.EStructuralFeature structuralFeature)
        This method is called by the TableControlSWTRenderer when the add button was pressed. Implementors are supposed to create a new element but not yet add it to the multireference.
        Parameters:
        clazz - the EClass defining the EObject to create
        eObject - The reference EObject
        structuralFeature - The reference EStructuralFeature
        Returns:
        the object which will be added
      • doubleClick

        void doubleClick​(VTableControl table,
                         org.eclipse.emf.ecore.EObject eObject)
        Called when an object in the table is double clicked.
        Parameters:
        table - the table control
        eObject - the object which was double clicked