From cb55eb5dcf67fbe1ca02e12cd3ccc25df4847ee2 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 1 Jun 2014 20:11:46 +0200 Subject: [PATCH] osmo: Allow to have a CtrlTrap filter on the message sent as well This is in preparation for being able to parse notifications. --- osmo/OsmoCtrlGrammar.st | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osmo/OsmoCtrlGrammar.st b/osmo/OsmoCtrlGrammar.st index 0f393b7..b96f211 100644 --- a/osmo/OsmoCtrlGrammar.st +++ b/osmo/OsmoCtrlGrammar.st @@ -92,10 +92,14 @@ CtrlCmd subclass: CtrlTrap [ ^ self subclassResponsibility ] + CtrlTrap class >> isFor: aPath value: aValue [ + ^self isFor: aPath + ] + CtrlTrap class >> findTrapFor: nodes [ CtrlTrap allSubclassesDo: [:trap | - (trap isFor: nodes third) + (trap isFor: nodes third value: nodes fourth) ifTrue: [^trap with: nodes]]. ^ CtrlTrap new ]