Skip to content

Commit

Permalink
Merge pull request #91 from jecisc/90-register-spec-demo-in-world-menu
Browse files Browse the repository at this point in the history
90-register-spec-demo-in-world-menu
  • Loading branch information
jecisc authored Oct 23, 2018
2 parents 3e9dae9 + abc3946 commit d36d2ed
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/Spec-Examples/SpecDemo.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ SpecDemo class >> defaultSpec [

]

{ #category : #'user interface' }
SpecDemo class >> menuExamplesOn: aBuilder [
"Add a custom menu item to the world menu"

<worldMenu>
(aBuilder item: #'Spec examples')
iconName: #smallHelpIcon;
parent: #Help;
order: 3.5;
help: 'Open Spec demo browser.';
action: [ self open ].
aBuilder withSeparatorAfter
]

{ #category : #'instance creation' }
SpecDemo class >> on: aModel [

Expand All @@ -47,12 +61,8 @@ SpecDemo class >> on: aModel [

{ #category : #specs }
SpecDemo class >> open [

<example>

^ self new
openWithSpec.

^ self new openWithSpec
]

{ #category : #accessing }
Expand Down

0 comments on commit d36d2ed

Please sign in to comment.