Class OperationFieldDefinition

All Implemented Interfaces:
IComponentFactory, IDefinition, ILabeledDefinition, IOperationFieldDefinition

public class OperationFieldDefinition extends LabeledDefinition implements IOperationFieldDefinition
The operation field definition represents the definition of some operation of the object. The feature is described with EOperation.
The main purpose of this definition is to describe the UI element that consist of a label and a control for processing the specified operation.
The key feature of this definition is AbstractDefinition.hashCode() and AbstractDefinition.equals(Object) implementation, which ignore all fields except the label and the operation. This feature allows to implement rules with convenient ways with using sets of definitions.
  • Constructor Details

    • OperationFieldDefinition

      public OperationFieldDefinition(Class<? extends IComponent<?>> componentClass, IParameterization parameterization, String label, org.eclipse.emf.ecore.EOperation operation)
      Creates a new instance.
      Parameters:
      componentClass - the class of the component.
      parameterization - the parameterization.
      label - the label.
      operation - the operation, cannot be null.
  • Method Details