1
0
Fork 0

osmo: Allow to have a CtrlTrap filter on the message sent as well

This is in preparation for being able to parse notifications.
This commit is contained in:
Holger Hans Peter Freyther 2014-06-01 20:11:46 +02:00
parent 11bb698a0b
commit cb55eb5dcf
1 changed files with 5 additions and 1 deletions

View File

@ -92,10 +92,14 @@ CtrlCmd subclass: CtrlTrap [
^ self subclassResponsibility
]
CtrlTrap class >> isFor: aPath value: aValue [
^self isFor: aPath
]
CtrlTrap class >> findTrapFor: nodes [
<category: 'creation'>
CtrlTrap allSubclassesDo: [:trap |
(trap isFor: nodes third)
(trap isFor: nodes third value: nodes fourth)
ifTrue: [^trap with: nodes]].
^ CtrlTrap new
]