Class ColumnDataFiller
java.lang.Object
com.amalgamasimulation.desktop.ui.views.ColumnDataFiller
ColumnDataFiller contains functions responsible for changing data in the columns of a table or tree.
- Author:
- Ionov Ivan
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplySameValue(org.eclipse.swt.widgets.Item[] items, Object clickedElement, Function<Object, org.eclipse.emf.ecore.EObject> extractorContainer, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Function<org.eclipse.emf.ecore.EObject, List<?>> extractorSourceValues, BiFunction<List<org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.EObject, List<org.eclipse.emf.common.command.Command>> additionalCommandsBefore, BiFunction<List<org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.EObject, List<org.eclipse.emf.common.command.Command>> additionalCommandsAfter) In all elements in @param items replaces the value by reference @param eStructuralFeature with the corresponding value from @param selectedElement.
-
Method Details
-
applySameValue
public static void applySameValue(org.eclipse.swt.widgets.Item[] items, Object clickedElement, Function<Object, org.eclipse.emf.ecore.EObject> extractorContainer, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Function<org.eclipse.emf.ecore.EObject, List<?>> extractorSourceValues, BiFunction<List<org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.EObject, List<org.eclipse.emf.common.command.Command>> additionalCommandsBefore, BiFunction<List<org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.EObject, List<org.eclipse.emf.common.command.Command>> additionalCommandsAfter) In all elements in @param items replaces the value by reference @param eStructuralFeature with the corresponding value from @param selectedElement.- Parameters:
items- from editing column viewerclickedElement- from editing row in column viewerextractorContainer- the object we will edit, by default clickedElementeStructuralFeature- link to the edited valueadditionalCommandsBefore-additionalCommandsAfter-
-