Skip to content

Commit

Permalink
sort the events by name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyan11 committed Dec 6, 2024
1 parent a7e23e8 commit f861408
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Molecule-IDE/MolComponentToRoassal.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,15 @@ MolComponentToRoassal class >> connectorsInOn: aMolComponent [
services := self
connectorsFromMolRSContracts:
(self associationsAllUsedServicesAndTargetsFor:
aMolComponent).
aMolComponent) sorted.
events := self
connectorsFromMolRSContracts:
(self associationsAllConsumedEventsAndTargetsFor:
aMolComponent).
aMolComponent) sorted.
parameters := self
connectorsFromMolRSContracts:
(self associationsAllUsedParametersAndTargetsFor:
aMolComponent).
aMolComponent) sorted.

connectors := RSComposite new
shapes: services , events , parameters;
Expand Down Expand Up @@ -286,13 +286,13 @@ MolComponentToRoassal class >> connectorsOutOn: aMolComponent [

services := self connectorsFromMolRSContracts:
(self associationsAllProvidedServicesAndTargetsFor:
aMolComponent).
aMolComponent) sorted.
events := self connectorsFromMolRSContracts:
(self associationsAllProducedEventsAndTargetsFor:
aMolComponent).
aMolComponent) sorted.
parameters := self connectorsFromMolRSContracts:
(self associationsAllProvidedParametersAndTargetsFor:
aMolComponent).
aMolComponent) sorted.

connectors := RSComposite new
shapes: services , events , parameters;
Expand Down
6 changes: 6 additions & 0 deletions src/Molecule-IDE/MolRSContractModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Class {
#category : #'Molecule-IDE-Inspectors'
}

{ #category : #comparing }
MolRSContractModel >> <= aMolRSContractModel [

^ self eventClass name < aMolRSContractModel eventClass name
]

{ #category : #accessing }
MolRSContractModel >> color [

Expand Down

0 comments on commit f861408

Please sign in to comment.