Interface TableControlService
-
public interface TableControlService
Service used by theTableControlSWTRenderer
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 theTableControlSWTRenderer
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 theTableControlSWTRenderer
when the add button was pressed. Implementors are supposed to create a new element but not yet add it to the multireference.- Parameters:
clazz
- theEClass
defining the EObject to createeObject
- The referenceEObject
structuralFeature
- The referenceEStructuralFeature
- 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 controleObject
- the object which was double clicked
-
-