UIPainter.st
changeset 1698 28250498a2b3
parent 1690 7428f8744d87
child 1710 4d81ff7b3412
equal deleted inserted replaced
1697:50a84654ab9b 1698:28250498a2b3
  2250     editor := MenuEditor new.
  2250     editor := MenuEditor new.
  2251     editor masterApplication:self.
  2251     editor masterApplication:self.
  2252     editor specClass: cls.
  2252     editor specClass: cls.
  2253     editor useHelpTool:(self helpTool).
  2253     editor useHelpTool:(self helpTool).
  2254 
  2254 
  2255     selectorOrMenu class ~~ Menu
  2255     selectorOrMenu class == Menu
  2256         ifTrue:  [editor openModalOnClass:cls andSelector:selectorOrMenu]
  2256         ifTrue: [editor openModalOnMenu:selectorOrMenu]
  2257         ifFalse: [editor openModalOnMenu:selectorOrMenu].
  2257         ifFalse:  [editor openModalOnClass:cls andSelector:selectorOrMenu].
  2258 
  2258 
  2259     editor hasSaved ifTrue:[
  2259     editor hasSaved ifTrue:[
  2260         holder := self specTool aspectFor:#menuSelector.
  2260         holder := self specTool aspectFor:#menuSelector.
  2261         holder value:(editor specSelector).
  2261         holder value:(editor specSelector).
  2262         self accept.
  2262         self accept.