Skip to content

Commit 03ffbd3

Browse files
committed
Rename #objectForUuid: to #objectForId: [feenkcom/gtoolkit#5155]
1 parent 48aea00 commit 03ffbd3

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎src/Lepiter-Snippet-ObjectReference/LeObjectReferenceAnnotationStyler.class.st‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ LeObjectReferenceAnnotationStyler >> objectExists: anObjectAnnotation [
6969
| uuid |
7070
uuid := anObjectAnnotation uuid.
7171
uuid ifNil: [^false].
72-
^(self objectForUuid: uuid) notNil
72+
^(self objectForId: uuid) notNil
7373
]
7474

7575
{ #category : #private }
76-
LeObjectReferenceAnnotationStyler >> objectForUuid: aUuidString [
76+
LeObjectReferenceAnnotationStyler >> objectForId: aUuidString [
7777
^self effectiveObjectRegistry
7878
ifNotNil: [:registry | registry at: aUuidString ifAbsent: [nil]]
7979
ifNil: [nil]
@@ -114,7 +114,7 @@ LeObjectReferenceAnnotationStyler >> styleExpandingObject: anObjectAnnotation [
114114
| uuid object cacheKey attribute isExpanded showSelector height |
115115
uuid := anObjectAnnotation uuid.
116116
uuid ifNil: [^self].
117-
object := self objectForUuid: uuid.
117+
object := self objectForId: uuid.
118118
object ifNil: [^self].
119119
cacheKey := anObjectAnnotation source.
120120
isExpanded := anObjectAnnotation expandedValue ifNil: [false].
@@ -141,7 +141,7 @@ LeObjectReferenceAnnotationStyler >> styleLinkButton: anObjectAnnotation [
141141
| attribute uuid object label |
142142
uuid := anObjectAnnotation uuid.
143143
uuid ifNil: [^self].
144-
object := self objectForUuid: uuid.
144+
object := self objectForId: uuid.
145145
label := object
146146
ifNotNil: [self labelFor: anObjectAnnotation object: object]
147147
ifNil: [anObjectAnnotation fallbackLabel ifNil: [uuid]].

‎src/Lepiter-Snippet-ObjectReference/LeObjectReferenceAnnotationStylerExamples.class.st‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ LeObjectReferenceAnnotationStylerExamples >> exampleStyler [
5454
| styler |
5555
styler := LeObjectReferenceExampleStyler new.
5656
styler objectRegistry: self sampleRegistry.
57-
self assert: (styler objectForUuid: self sampleId)
57+
self assert: (styler objectForId: self sampleId)
5858
equals: self sampleObject.
59-
self assert: (styler objectForUuid: self missingId) isNil.
59+
self assert: (styler objectForId: self missingId) isNil.
6060
^styler
6161
]
6262

‎src/Lepiter-Snippet-ObjectReference/LeObjectReferenceExampleStyler.class.st‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ LeObjectReferenceExampleStyler >> objectExists: anObjectAnnotation [
3838
| uuid |
3939
uuid := anObjectAnnotation uuid.
4040
uuid ifNil: [^false].
41-
^(self objectForUuid: uuid) notNil
41+
^(self objectForId: uuid) notNil
4242
]
4343

4444
{ #category : #accessing }
45-
LeObjectReferenceExampleStyler >> objectForUuid: anIdString [
45+
LeObjectReferenceExampleStyler >> objectForId: anIdString [
4646
| key |
4747
objectRegistry ifNil: [^nil].
4848
key := (anIdString includes: $-)
@@ -89,7 +89,7 @@ LeObjectReferenceExampleStyler >> styleExpandingObject: anObjectAnnotation [
8989
| uuid object cacheKey attribute isExpanded showSelector height |
9090
uuid := anObjectAnnotation uuid.
9191
uuid ifNil: [^self].
92-
object := self objectForUuid: uuid.
92+
object := self objectForId: uuid.
9393
object ifNil: [^self].
9494
cacheKey := anObjectAnnotation source.
9595
isExpanded := anObjectAnnotation expandedValue ifNil: [false].
@@ -116,7 +116,7 @@ LeObjectReferenceExampleStyler >> styleLinkButton: anObjectAnnotation [
116116
| attribute uuid object label |
117117
uuid := anObjectAnnotation uuid.
118118
uuid ifNil: [^self].
119-
object := self objectForUuid: uuid.
119+
object := self objectForId: uuid.
120120
label := object
121121
ifNotNil: [self labelFor: anObjectAnnotation object: object]
122122
ifNil: [anObjectAnnotation fallbackLabel ifNil: [uuid]].

0 commit comments

Comments
 (0)