UIPainter.st
changeset 2238 3b631ae43cc9
parent 2235 ac5b46f34c53
child 2240 2cf6b94ae9f9
equal deleted inserted replaced
2237:c1d95982e1c3 2238:3b631ae43cc9
  4152     |cls code aspectList displayedList selectorsToGenerateCode 
  4152     |cls code aspectList displayedList selectorsToGenerateCode 
  4153      doBrowse methods|
  4153      doBrowse methods|
  4154 
  4154 
  4155     self askForSectionModification.
  4155     self askForSectionModification.
  4156 
  4156 
  4157     cls := self targetClass.
  4157     cls := self painter targetClass.
  4158 
  4158 
  4159     aspectList := OrderedCollection new.
  4159     aspectList := OrderedCollection new.
  4160 
  4160 
  4161     self aspectSelectorsAndTypesDo:
  4161     self painter aspectSelectorsAndTypesDo:
  4162         [:selector :type |
  4162         [:selector :type |
  4163             |newEntry|
  4163             |newEntry|
  4164 
  4164 
  4165             ( #(#modelAspect channelAspect actionSelector valueSelector) includes:type) ifTrue:[
  4165             ( #(#modelAspect channelAspect actionSelector valueSelector) includes:type) ifTrue:[
  4166                 (cls includesSelector:selector) ifFalse:[
  4166                 (cls includesSelector:selector) ifFalse:[
  4204 
  4204 
  4205     code := self painter generateAspectMethodCodeFiltering:selectorsToGenerateCode.
  4205     code := self painter generateAspectMethodCodeFiltering:selectorsToGenerateCode.
  4206     code readStream fileIn.
  4206     code readStream fileIn.
  4207 
  4207 
  4208     "/ refetch - cls is now obsolete
  4208     "/ refetch - cls is now obsolete
  4209     cls := self targetClass.
  4209     cls := self painter targetClass.
  4210 
  4210 
  4211     doBrowse ifTrue:[
  4211     doBrowse ifTrue:[
  4212         methods := selectorsToGenerateCode 
  4212         methods := selectorsToGenerateCode 
  4213                         collect:[:sel | cls compiledMethodAt:sel]
  4213                         collect:[:sel | cls compiledMethodAt:sel]
  4214                         thenSelect:[:m | m notNil].
  4214                         thenSelect:[:m | m notNil].