Skip to content

Commit

Permalink
Fix #1207: Avoid opening aStInspector in Moose
Browse files Browse the repository at this point in the history
  • Loading branch information
ClotildeToullec committed Nov 12, 2024
1 parent 79caf7f commit 49a4176
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/MooseIDE-NewTools/MiPlaygroundPagePresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ MiPlaygroundPagePresenter >> addMooseToolbarCommandsTo: aGroup [
forRoot: aGroup
]

{ #category : #accessing }
MiPlaygroundPagePresenter >> application [
"This is a hack to avoid opening Pharo system tools in MiApplication"

^ StPharoApplication current
]

{ #category : #'public access' }
MiPlaygroundPagePresenter >> evaluate [

Expand All @@ -40,18 +47,19 @@ MiPlaygroundPagePresenter >> menuActionsFor: aCodePresenter [
beDisplayedAsGroup;
register: (StEvaluateCommand forSpecContext: self);
register:
(MiInspectCommand forSpecContext: self playgroundBrowser);
((MiInspectCommand forSpecContext: self playgroundBrowser)
name: 'Inspect in Moose');
register:
(MiPropagateCommand forSpecContext: self playgroundBrowser);
yourself);
register: (aCodePresenter rootCommandsGroup name: 'Code');
register: (aCodePresenter editionCommandsGroup name: 'Edition');
in: [ :this |
self addMenuEditionCommandsTo: this presenter: aCodePresenter ];
in: [ :this | self addMenuCommandsTo: this ];
register: ((CmCommandGroup named: 'Playground') asSpecGroup
register: ((CmCommandGroup named: 'Base options') asSpecGroup
beDisplayedAsGroup;
register: (StPlaygroundPublishCommand forSpecContext: self);
register: (StPlaygroundBindingsCommand forSpecContext: self);
register: (StPlaygroundPagesCommand forSpecContext: self);
in: [ :this | self addToolbarCommandsTo: this ];
yourself);
register:
((CmCommandGroup named: 'Miscelaneous options') asSpecGroup
Expand Down

0 comments on commit 49a4176

Please sign in to comment.