yasmin_editor.editor_gui.selection_bundle_collect module
Selection snapshot builders used by copy, move, and extract actions.
- yasmin_editor.editor_gui.selection_bundle_collect.collect_selection_bundle(container_model: StateMachine | Concurrence, selected_state_names: set[str], selected_outcome_instance_ids: set[str], selected_text_blocks: list[TextBlock]) SelectionBundle
Build a portable snapshot from the selected model items.
- yasmin_editor.editor_gui.selection_bundle_collect.copy_concurrence_rules(bundle: SelectionBundle, container_model: Concurrence, selected_state_names: set[str], selected_outcome_names: set[str]) None
Copy concurrence outcome-map rules that stay valid in the bundle.
- yasmin_editor.editor_gui.selection_bundle_collect.copy_selected_outcomes(bundle: SelectionBundle, container_model: StateMachine | Concurrence, selected_outcome_instance_ids: set[str]) set[str]
Copy selected visual outcome aliases and return their logical names.
- yasmin_editor.editor_gui.selection_bundle_collect.copy_selected_states(bundle: SelectionBundle, container_model: StateMachine | Concurrence, selected_state_names: set[str]) None
Copy selected states and their layout positions into the bundle.
- yasmin_editor.editor_gui.selection_bundle_collect.copy_selected_text_blocks(bundle: SelectionBundle, selected_text_blocks: Iterable[TextBlock]) None
Copy selected text blocks into the bundle.
- yasmin_editor.editor_gui.selection_bundle_collect.copy_state_machine_links(bundle: SelectionBundle, container_model: StateMachine, selected_state_names: set[str], selected_outcome_names: set[str], selected_outcome_instance_ids: set[str]) None
Copy only transitions that stay inside the selected snapshot.
- yasmin_editor.editor_gui.selection_bundle_collect.create_empty_bundle(container_model: StateMachine | Concurrence) SelectionBundle
Create a bundle with the correct source container kind.