Skip to content

Commit

Permalink
Remove invalid diagram element instead of replacing it by backup
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Nov 23, 2024
1 parent b243de1 commit 496ea4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions repository/OpenPonk-ClassEditor/OPTUmlBaseController.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ OPTUmlBaseController >> validateProperty: aProperty [

aProperty ifNil: [ ^ self ].
(aProperty association isNotNil and: [
(aProperty respondsTo: #oclIsKindOf:) not or: [
(aProperty oclIsKindOf: #Classifier) not ] ]) ifTrue: [
(aProperty type respondsTo: #oclIsKindOf:) not or: [
(aProperty type oclIsKindOf: #Classifier) not ] ]) ifTrue: [
self validationFailedAssociationPropertyWithoutClassifierType:
aProperty ].
aProperty owningAssociation
Expand Down
10 changes: 0 additions & 10 deletions repository/OpenPonk-ClassEditor/OPUmlAttributeLabel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,3 @@ 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 496ea4a

Please sign in to comment.