public class OperationInstanceHelper extends Object
| Constructor and Description |
|---|
OperationInstanceHelper(IExtentProvider provider)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
OperationInstance |
createOperationInstance(Operation operation,
List<org.eclipse.emf.ecore.EObject> selectedElements)
Create an instance of an operation based on the list of selected elements
|
MetamodelExtent |
getExtent()
Get metamodel extent
|
List<OperationInstance> |
getPossibleOperations(List<org.eclipse.emf.ecore.EObject> selectedElements)
Create operation instances for operations which are applicable on a list
of selected elements
|
List<Constraint> |
getViolatedConstraints(OperationInstance operationInstance)
Evaluate all constraints of an operation instance and return those which
are not fulfilled
|
public OperationInstanceHelper(IExtentProvider provider)
public List<OperationInstance> getPossibleOperations(List<org.eclipse.emf.ecore.EObject> selectedElements)
selectedElements - Selected elementspublic OperationInstance createOperationInstance(Operation operation, List<org.eclipse.emf.ecore.EObject> selectedElements)
operation - OperationselectedElements - List of selected elementspublic List<Constraint> getViolatedConstraints(OperationInstance operationInstance)
operationInstance - Operation instancepublic MetamodelExtent getExtent()
Copyright © 2020. All rights reserved.