@@ -29,7 +29,7 @@ CmCommandGroup class >> defaultName [
29
29
{ #category : #' instance creation' }
30
30
CmCommandGroup class >> named: aString [
31
31
^ self new
32
- basicName : aString;
32
+ name : aString;
33
33
yourself
34
34
]
35
35
@@ -43,7 +43,7 @@ CmCommandGroup >> allCommands [
43
43
44
44
{ #category : #' public-api' }
45
45
CmCommandGroup >> commandOrGroupNamed: aString [
46
- ^ (entries detect: [ :commandOrRegister | commandOrRegister basicName = aString ])
46
+ ^ (entries detect: [ :commandOrRegister | commandOrRegister name = aString ])
47
47
]
48
48
49
49
{ #category : #' public-api' }
@@ -56,8 +56,8 @@ CmCommandGroup >> ensureNotDuplicated: aCommandOrGroup [
56
56
" Check that aCommandOrGroup's #basicName is not already used by one of my entries.
57
57
If it is, raises a CmDuplicatedEntryName error.
58
58
"
59
- (self hasEntryNamed: aCommandOrGroup basicName )
60
- ifTrue: [ CmDuplicatedEntryName signalEntryNamed: aCommandOrGroup basicName ]
59
+ (self hasEntryNamed: aCommandOrGroup name )
60
+ ifTrue: [ CmDuplicatedEntryName signalEntryNamed: aCommandOrGroup name ]
61
61
]
62
62
63
63
{ #category : #' public-api' }
@@ -94,7 +94,7 @@ CmCommandGroup >> hasEntryNamed: aString [
94
94
" Returns true if one of my entries (command, registry, ...) is named aString.
95
95
Else returns false.
96
96
"
97
- ^ entries anySatisfy: [ :any | any basicName = aString ]
97
+ ^ entries anySatisfy: [ :any | any name = aString ]
98
98
]
99
99
100
100
{ #category : #testing }
@@ -105,8 +105,8 @@ CmCommandGroup >> hasGroup: aCommandGroup [
105
105
{ #category : #initialization }
106
106
CmCommandGroup >> initialize [
107
107
super initialize.
108
- self basicName : self class defaultName.
109
- self basicDescription : self class defaultDescription.
108
+ self name : self class defaultName.
109
+ self description : self class defaultDescription.
110
110
entries := OrderedCollection new
111
111
]
112
112
@@ -132,7 +132,7 @@ CmCommandGroup >> register: aCommandOrGroup insteadOf: anotherCommandOrGroup [
132
132
| commandToReplaceIndex |
133
133
commandToReplaceIndex := self entriesIndexOf: anotherCommandOrGroup.
134
134
135
- ((self commands collect: #basicName ) \ { (entries at: commandToReplaceIndex) } includes: aCommandOrGroup name)
135
+ ((self commands collect: #name ) \ { (entries at: commandToReplaceIndex) } includes: aCommandOrGroup name)
136
136
ifTrue: [ CmDuplicatedEntryName signalEntryNamed: aCommandOrGroup name ].
137
137
138
138
entries at: commandToReplaceIndex put: aCommandOrGroup
0 commit comments