[Cuis-dev] Sub-class Template Styling Fix

Juan Vuletich juan at jvuletich.org
Tue Jul 28 13:14:18 PDT 2020


On 7/27/2020 2:09 PM, Gerald Klix via Cuis-dev wrote:
> !Browser methodsFor: 'shout styling' stamp: 'KLG 7/27/2020 19:00:02'!
> shouldStyle: text with: anSHTextStyler
> 	"This is a notification that anSHTextStyler is about to re-style its text.
> 	Set the classOrMetaClass in anSHTextStyler, so that identifiers
> 	will be resolved correctly.
> 	Answer true to allow styling to proceed, or false to veto the styling"
> 	| type |
> 	
> 	self isModeStyleable ifFalse: [^false].
> 	type _ self editSelection.
> 	(#(newMessage editMessage editClass newClass) includes: type) ifFalse:[^false].
> 	anSHTextStyler classOrMetaClass: ((#(editClass newClass) includes: type)  ifFalse:[
> 		self selectedClassOrMetaClass]).
> 	^true! !

Now at GitHub. Thanks!

Cheers,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich



More information about the Cuis-dev mailing list