Interface Action

All Known Implementing Classes:
AddDoubleAction, SetBooleanAction, SetDoubleAction, ToggleBooleanAction

public interface Action
Represents a built-in operation that can be applied to a ModelElement.

Built-in events use Action implementations to modify properties on the model element when the event is triggered. Actions are intentionally lightweight and typically operate by locating a target property and then mutating it in some simple way.

This interface is intended for use by the built-in event system, but custom implementations may also be provided where a reusable mutation is useful.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Applies this action to the supplied model element.
  • Method Details

    • apply

      void apply(ModelElement element)
      Applies this action to the supplied model element.
      Parameters:
      element - the model element to mutate