Skip to content

Commit

Permalink
use placeholder model element if diagram references non-existent one
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Nov 22, 2024
1 parent deaba54 commit eb38582
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions repository/OpenPonk-ClassEditor/OPUmlAttributeLabel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@ Class {
#package : 'OpenPonk-ClassEditor',
#tag : 'Shapes'
}

{ #category : 'serialization' }
OPUmlAttributeLabel >> backupModelElementFor: aModelReference [

^ OPUMLProperty new
uuid: aModelReference uuid;
name: '!!!__FAILED_TO_LOAD__!!!';
owningClass: self owningElement owningElement modelElement;
yourself
]

0 comments on commit eb38582

Please sign in to comment.