Skip to content

Commit

Permalink
Do not allow generalization self-loops
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Jul 22, 2024
1 parent 39b39f7 commit b5e07cf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions repository/OpenPonk-ClassEditor/OPUmlClassController.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ OPUmlClassController >> canBeSourceFor: aController [

{ #category : 'adding' }
OPUmlClassController >> canBeTargetFor: aController [
^ (aController isKindOf: OPUmlAttributeController)
| (aController isKindOf: OPUmlOperationController)
| (aController isKindOf: OPUmlGeneralizationController)
| (aController isKindOf: OPUmlAssociationController)
| (aController isKindOf: OPUmlExtensionController)

^ (aController isKindOf: OPUmlAttributeController) or: [
(aController isKindOf: OPUmlOperationController) or: [
(aController isKindOf: OPUmlAssociationController) or: [
(aController isKindOf: OPUmlExtensionController) or: [
(aController isKindOf: OPUmlGeneralizationController) and: [
aController source ~= self ] ] ] ] ]
]

{ #category : 'figures' }
Expand Down

0 comments on commit b5e07cf

Please sign in to comment.