Package com.nomagic.magicdraw.annotation
Interface AnnotationAction
@OpenApiAll
public interface AnnotationAction
Annotation actions supporting multiple targets should implement this interface. Otherwise this action will not be
available in browser for recursive execution or in validation results window for multiple selection.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canExecute
(Collection<Annotation> annotations) Checks if possible to execute action together on all specified annotations.void
execute
(Collection<Annotation> annotations) Executes action on specified target annotations.
-
Method Details
-
execute
Executes action on specified target annotations. This method will be invoked with such annotations that have the action.- Parameters:
annotations
- action targets
-
canExecute
Checks if possible to execute action together on all specified annotations.- Parameters:
annotations
- target annotations- Returns:
- true if action can be executed with specified annotations
-