Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

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

Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

pharo
Status: Accepted
Owner: [hidden email]

New issue 3715 by [hidden email]: Workspace shouting after switching  
between shout/unshout
http://code.google.com/p/pharo/issues/detail?id=3715

I do not know why but when you switch unshout -> shout again in the menu,  
then when you automatically declare a variable, this one is not correctly  
shouted

But first, I will fix the bold issue ^^


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

pharo
Updates:
        Status: Fixed

Comment #1 on issue 3715 by [hidden email]: Workspace shouting after  
switching between shout/unshout
http://code.google.com/p/pharo/issues/detail?id=3715

Done.

Now, instead of creating a new instance of the styler class, I store them  
in two variables (nullStyler and shoutedStyler), and I switch when needed.

It solves the problem, generate less garbage, and allow to keep styler  
changements

Attachments:
        FixPluggableTextMorphForBetterShouting.1.cs  1.7 KB


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

pharo
Updates:
        Labels: Milestone-1.3

Comment #2 on issue 3715 by [hidden email]: Workspace shouting after  
switching between shout/unshout
http://code.google.com/p/pharo/issues/detail?id=3715

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

pharo
Updates:
        Status: Closed

Comment #3 on issue 3715 by [hidden email]: Workspace shouting after  
switching between shout/unshout
http://code.google.com/p/pharo/issues/detail?id=3715

Benjamin I'm sure that there is a solution without the Smalltalk at:...

Now that there is a NullStyler, it should be enough to pass another one,  
without these terrible checks.
Smalltalk at: should not exist.


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

pharo

Comment #4 on issue 3715 by [hidden email]: Workspace shouting after  
switching between shout/unshout
http://code.google.com/p/pharo/issues/detail?id=3715

If you have an idea, i'm listening :)

I'm totally agree with you that it's ugly, but at some point, you have to  
decide if you use the NullStyler or not ...


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

Stéphane Ducasse

On Mar 2, 2011, at 10:25 AM, [hidden email] wrote:

>
> Comment #4 on issue 3715 by [hidden email]: Workspace shouting after switching between shout/unshout
> http://code.google.com/p/pharo/issues/detail?id=3715
>
> If you have an idea, i'm listening :)
>
> I'm totally agree with you that it's ugly, but at some point, you have to decide if you use the NullStyler or not ...

Indeed but not that way.
Either the ShoutPackage should install a different styler, or the toolset should push a new styler.
We should not have such tests now that we have a NullStyler.

Stef
Reply | Threaded
Open this post in threaded view
|

Re: Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

pharo
In reply to this post by pharo
Updates:
        Status: Accepted

Comment #5 on issue 3715 by [hidden email]: Workspace shouting after  
switching between shout/unshout
http://code.google.com/p/pharo/issues/detail?id=3715

in the shout initialize or load method we should have something like


PluggableTextMorph shoutStylerClass: SHTextStylerST80

PluggableTextMorph>>shoutedStyler

      shoutStylerClass
          ifNil: [ ^ self nullStyler]
          ifNotNil: [^ self shoutStylerClass new view: self]







Reply | Threaded
Open this post in threaded view
|

Re: Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

pharo
Updates:
        Status: FixProposed

Comment #6 on issue 3715 by [hidden email]: Workspace shouting after  
switching between shout/unshout
http://code.google.com/p/pharo/issues/detail?id=3715

Once this fix is integrated, you can load the last version of shout :)

Attachments:
        BetterImplementationOfShouting.1.cs  2.2 KB


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

pharo

Comment #7 on issue 3715 by [hidden email]: Workspace shouting after  
switching between shout/unshout
http://code.google.com/p/pharo/issues/detail?id=3715

Done

Attachments:
        BetterImplementationOfShouting.2.cs  2.0 KB


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

pharo
Updates:
        Status: Closed

Comment #8 on issue 3715 by [hidden email]: Workspace shouting after  
switching between shout/unshout
http://code.google.com/p/pharo/issues/detail?id=3715

in 13110


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3715 in pharo: Workspace shouting after switching between shout/unshout

pharo

Comment #9 on issue 3715 by [hidden email]: Workspace shouting after  
switching between shout/unshout
http://code.google.com/p/pharo/issues/detail?id=3715

Benjamin you should talk with igor about using class new.