Issue 3556 in pharo: PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 3556 in pharo: PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:

pharo
Status: Accepted
Owner: [hidden email]
CC: [hidden email],  [hidden email]
Labels: Milestone-1.2

New issue 3556 by [hidden email]:  
PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:
http://code.google.com/p/pharo/issues/detail?id=3556

Can somebody try by defining these methods

!PluggableTextMorph methodsFor: 'zork' stamp: 'BenjaminVanRyseghem  
11/25/2010 15:35'!
stylerStyled: styledCopyOfText

        textMorph contents runs: styledCopyOfText runs .
        "textMorph paragraph recomposeFrom: 1 to: textMorph contents size delta:  
0."     "caused chars to appear in wrong order esp. in demo mode. remove  
this line when sure it is fixed"
        textMorph updateFromParagraph.
        selectionInterval
                ifNotNil:[
                        textMorph editor
                                selectInvisiblyFrom: selectionInterval first to: selectionInterval last;
                                storeSelectionInParagraph;
                                setEmphasisHere].
        textMorph editor blinkParen.
        self scrollSelectionIntoView
! !

!PluggableTextMorph methodsFor: 'zork' stamp: 'BenjaminVanRyseghem  
11/25/2010 15:35'!
stylerStyledInBackground: styledCopyOfText
        "It is possible that the text string has changed since the styling began.  
Disregard the styles if styledCopyOfText's string differs with the current  
textMorph contents string"
       
        textMorph contents string = styledCopyOfText string
                ifTrue: [self stylerStyled: styledCopyOfText]! !



I think that we found a bug in MC since the category where named: 'shout'  
(not with * so that the changes do not belong to the package of shout but  
really the one of PluggableTextMorph.


On Jan 19, 2011, at 10:34 PM, Stéphane Ducasse wrote:

PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:


this is probably with a MC problem because in
        Issue 3486: PluggableTextMorph should be able to support text styling

we payed attention to have it.
        http://code.google.com/p/pharo/issues/detail?id=3486

Benjamin can you have a look?

Reply | Threaded
Open this post in threaded view
|

Re: Issue 3556 in pharo: PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:

pharo
Updates:
        Status: Fixed

Comment #1 on issue 3556 by [hidden email]:  
PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:
http://code.google.com/p/pharo/issues/detail?id=3556

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3556 in pharo: PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:

pharo

Comment #2 on issue 3556 by [hidden email]:  
PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:
http://code.google.com/p/pharo/issues/detail?id=3556

Can someone please attach *code* ???


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3556 in pharo: PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:

pharo
Updates:
        Labels: Milestone-1.3

Comment #3 on issue 3556 by [hidden email]:  
PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:
http://code.google.com/p/pharo/issues/detail?id=3556

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3556 in pharo: PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:

pharo

Comment #4 on issue 3556 by [hidden email]:  
PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:
http://code.google.com/p/pharo/issues/detail?id=3556

(No comment was entered for this change.)

Attachments:
        AAA-Pluggable.1.cs  4.6 KB


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3556 in pharo: PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:

pharo
Updates:
        Status: Closed

Comment #5 on issue 3556 by [hidden email]:  
PluggableTextMorph(Object)>>doesNotUnderstand: #stylerStyled:
http://code.google.com/p/pharo/issues/detail?id=3556

in 13006 and 12315