Skip to content

Commit

Permalink
fix bug when switching between match and transformation types
Browse files Browse the repository at this point in the history
  • Loading branch information
j-brant committed Aug 28, 2024
1 parent 20cf573 commit 0a1e4f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GT4SmaCC-Rewrite-Engine-UI/GtSmaCCRewriteElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ GtSmaCCRewriteElement >> updateMatch [
{ #category : #updating }
GtSmaCCRewriteElement >> updateMatchContents [
rewrite match class type = #Pattern
ifTrue: [ matchPatternElement model: rewrite match ]
ifFalse: [ matchCodeElement model: rewrite match ]
ifTrue: [ self matchPatternElement model: rewrite match ]
ifFalse: [ self matchCodeElement model: rewrite match ]
]

{ #category : #updating }
Expand All @@ -198,6 +198,6 @@ GtSmaCCRewriteElement >> updateTransformation [
{ #category : #updating }
GtSmaCCRewriteElement >> updateTransformationContents [
rewrite transformation class type = #String
ifTrue: [ transformationPatternElement model: rewrite transformation ]
ifFalse: [ transformationCodeElement model: rewrite transformation ]
ifTrue: [ self transformationPatternElement model: rewrite transformation ]
ifFalse: [ self transformationCodeElement model: rewrite transformation ]
]

0 comments on commit 0a1e4f8

Please sign in to comment.