Skip to content

Commit

Permalink
add All methods item to Instance slots filter widget
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajKubelka committed Oct 25, 2024
1 parent f53d35d commit 698a126
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions src/GToolkit-Coder-UI/GtFilterModelAllItem.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Class {
#name : #GtFilterModelAllItem,
#superclass : #GtFilterModelItem,
#instVars : [
'label'
],
#category : #'GToolkit-Coder-UI-Filters - Models'
}

{ #category : #factory }
GtFilterModelAllItem class >> default [
^ self new
]

{ #category : #factory }
GtFilterModelAllItem class >> methodsLabel [
^ self new label: 'All methods'
]

{ #category : #accessing }
GtFilterModelAllItem >> ifSome: aBlock ifNone: aNoneBlock [
^ aNoneBlock value
]

{ #category : #initialization }
GtFilterModelAllItem >> initialize [
super initialize.
label := 'All'
]

{ #category : #accessing }
GtFilterModelAllItem >> label [
^ 'All'
]

{ #category : #factory }
GtFilterModelAllItem >> label: aString [
]

{ #category : #convenience }
GtFilterModelAllItem >> withAll: aCollection [
^ Array with: self withAll: aCollection
]

0 comments on commit 698a126

Please sign in to comment.