Skip to content
Permalink
Browse files

Merge pull request #725 from juliendelplanque/724-Move-spec-related-m…

…ethods-on-class-side-of-CmCommand-and-CmCommandGroup-to-spec-integration-package

724-Move-spec-related-methods-on-class-side-of-CmCommand-and-CmCommandGroup-to-spec-integration-package
  • Loading branch information...
jecisc committed Aug 13, 2019
2 parents ef8c984 + ff4a90d commit f95eca0e993a9958ce8db6197bb36f4b275d2365
Showing with 35 additions and 0 deletions.
  1. +25 −0 src/Spec2-Commander2/CmCommand.extension.st
  2. +10 −0 src/Spec2-Commander2/CmCommandGroup.extension.st
@@ -27,3 +27,28 @@ CmCommand >> asSpecCommandWithShortcutKey: aKMKeyCombination [
shortcutKey: aKMKeyCombination;
yourself
]

{ #category : #'*Spec2-Commander2' }
CmCommand class >> forSpec [
^ self new
asSpecCommand
]

{ #category : #'*Spec2-Commander2' }
CmCommand class >> forSpecContext: anObject [

^ self forSpec
context: anObject;
yourself
]

{ #category : #'*Spec2-Commander2' }
CmCommand class >> forSpecWithIconNamed: aSymbol [
^ self new asSpecCommandWithIconNamed: aSymbol
]

{ #category : #'*Spec2-Commander2' }
CmCommand class >> forSpecWithIconNamed: aSymbol shortcutKey: aKMKeyCombination [
^ self new
asSpecCommandWithIconNamed: aSymbol shortcutKey: aKMKeyCombination
]
@@ -12,3 +12,13 @@ CmCommandGroup >> asSpecGroupWithIconNamed: aSymbol [
iconName: aSymbol;
yourself
]

{ #category : #'*Spec2-Commander2' }
CmCommandGroup class >> forSpec [
^ self new asSpecGroup
]

{ #category : #'*Spec2-Commander2' }
CmCommandGroup class >> forSpecWithIconNamed: aSymbol [
^ self new asSpecGroupWithIconNamed: aSymbol
]

0 comments on commit f95eca0

Please sign in to comment.
You can’t perform that action at this time.