Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better inspector #205

Merged
merged 5 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/Molecule-Examples/MolMyClockSystem.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ MolMyClockSystem class >> start [
| cm |
cm := MolComponentManager default.
self deploy.
cm homeServices instanciateComponent: MolMyServerTimeComponentImpl.
cm homeServices instanciateComponent: MolMyClockComponentImpl.
cm homeServices instanciateComponent: MolMyUserFacadeComponentImpl.
cm homeServices instanciateComponent: MolMyAlarmComponentImpl.

cm homeServices instantiateComponent: MolMyServerTimeComponentImpl.
cm homeServices instantiateComponent: MolMyClockComponentImpl.
cm homeServices instantiateComponent: MolMyUserFacadeComponentImpl.
cm homeServices instantiateComponent: MolMyAlarmComponentImpl.

cm homeServices activateComponent: MolMyServerTimeComponentImpl.
cm homeServices activateComponent: MolMyClockComponentImpl.
cm homeServices activateComponent: MolMyUserFacadeComponentImpl.
cm homeServices activateComponent: MolMyAlarmComponentImpl.
cm homeServices activateComponent: MolMyAlarmComponentImpl
]

{ #category : #launcher }
Expand Down
18 changes: 12 additions & 6 deletions src/Molecule-IDE/MolComponentImpl.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ MolComponentImpl >> asRSMoleculeShape [
fontSize: 18;
yourself.

contracts := MolComponentToRoassal contractFromMolComponentImpl: self.
contracts := MolComponentToRoassal makeContractShapesFor: self.

RSVerticalLineLayout new
alignCenter;
Expand All @@ -39,11 +39,17 @@ MolComponentImpl >> asRSMoleculeShape [
composite adjustToChildren.
composite extent: composite extent + (0 @ 20).
composite @ (RSMenuActivable new menuDo: [ :aMenuMorph :anRSBox |
aMenuMorph
add: 'Inspect'
target: self
selector: #inspect
argument: #( ) ]).
(aMenuMorph
add: 'Inspect component'
target: self
selector: #inspect
argument: #( )) icon:
(Smalltalk ui icons iconNamed: #smallInspectIt).
(aMenuMorph
add: 'Browse component'
target: self
selector: #browse
argument: #( )) icon: (Smalltalk ui icons iconNamed: #nautilus) ]).

^ composite
]
Expand Down
Loading