|
Hello Denis, can you change SycMethodNameEditor as follow and check: - adding of #selectorFieldMorph to build the morph and to manage the right announcements - change of #newContentMorph to use #selectorFieldMorph
thanks Alain
SycMethodNameEditor>>selectorFieldMorph | m | m := self newAutoAcceptTextEntryFor: self getText: #selector setText: #selector: getEnabled: nil help: nil. m announcer when: RubReturnEntered send: #ok to: self. m announcer when: RubKeystroke send: #value: to: [ :announcement | announcement event keyCharacter = Character escape ifTrue: [ self cancel ] ]. ^ m
SycMethodNameEditor>>newContentMorph ^ (self newRow: { self newLabelGroup: { 'Selector:' -> (selectorField := self selectorFieldMorph). 'Arguments:' -> (self newRow: { (self newListFor: self list: #argumentList selected: #argumentIndex changeSelected: #argumentIndex: help: nil) hResizing: #spaceFill; yourself. (self newColumn: { (self newButtonFor: self action: #up label: 'up' help: nil) getEnabledSelector: #isUpEnabled. (self newButtonFor: self action: #down label: 'dn' help: nil) getEnabledSelector: #isDownEnabled }) hResizing: #shrinkWrap }). 'Preview:' -> (labelMorph := self newLabel: self methodName printString) } }) minWidth: 400; yourself
|
|
|
Priority: 1 – Show Stopper !!!!!!
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Pharo8.0
|
Go to Case
|
|