Skip to content

Commit

Permalink
gtFilterTypes views use #addOrReplaceFilter: [feenkcom/gtoolkit#3983
Browse files Browse the repository at this point in the history
]
  • Loading branch information
JurajKubelka committed Oct 21, 2024
1 parent 7c1d746 commit 21e3ee4
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ GtPharoStreamingMethodsCoder >> classSlotFilter: aView [
items: (self behavior classSide allInstVarNames sorted: [ :a :b | a < b ])
title: [ :aVariable | aVariable ]
action: [ :aVariable |
self
additionalFilters: {GtSearchClassSlotReferenceFilter
self addOrReplaceFilter: (GtSearchClassSlotReferenceFilter
forClass: self behavior classSide
andVariable: aVariable} ] ]
andVariable: aVariable) ] ]
]

{ #category : #'*GToolkit-Pharo-Coder-Method-UI' }
Expand All @@ -53,10 +52,9 @@ GtPharoStreamingMethodsCoder >> classVariableFilter: aView [
items: (self behavior instanceSide allClassVarNames sorted: [ :a :b | a < b ])
title: [ :aVariable | aVariable ]
action: [ :aVariable |
self additionalFilters: {
(GtSearchClassVariableReferenceFilter
self addOrReplaceFilter: (GtSearchClassVariableReferenceFilter
forClass: self behavior instanceSide
andVariable: aVariable) } ] ]
andVariable: aVariable) ] ]
]

{ #category : #'*GToolkit-Pharo-Coder-Method-UI' }
Expand Down Expand Up @@ -143,7 +141,7 @@ GtPharoStreamingMethodsCoder >> instanceSlotFilter: aView [
items: (self behavior instanceSide allInstVarNames sorted: [ :a :b | a < b ])
title: [ :aVariable | aVariable ]
action: [ :aVariable | self
additionalFilters: { GtSearchInstanceSlotReferenceFilter
addOrReplaceFilter: (GtSearchInstanceSlotReferenceFilter
forClass: self behavior instanceSide
andVariable: aVariable } ] ]
andVariable: aVariable) ] ]
]

0 comments on commit 21e3ee4

Please sign in to comment.