Behavior>>formatterClass makes no sense for togglePrettyPrint

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

Behavior>>formatterClass makes no sense for togglePrettyPrint

Oscar Nierstrasz

Behavior>>formatterClass
        ^Preferences useRBASTForPrettyPrint
                ifFalse: [ self compilerClass ]
                ifTrue: [ RBParser ]

This makes no sense for view > prettyPrint which expects the class to  
implement #format:in:notifying:contentsSymbol: (only implemented by  
RBParser).

- on

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Behavior>>formatterClass makes no sense for togglePrettyPrint

Stéphane Ducasse
Thanks oscar
can you open a ticket?
Stef

On Jul 2, 2009, at 9:07 PM, Oscar Nierstrasz wrote:

>
> Behavior>>formatterClass
> ^Preferences useRBASTForPrettyPrint
> ifFalse: [ self compilerClass ]
> ifTrue: [ RBParser ]
>
> This makes no sense for view > prettyPrint which expects the class to
> implement #format:in:notifying:contentsSymbol: (only implemented by
> RBParser).
>
> - on
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Behavior>>formatterClass makes no sense for togglePrettyPrint

Damien Cassou
In reply to this post by Oscar Nierstrasz
On Thu, Jul 2, 2009 at 9:07 PM, Oscar Nierstrasz<[hidden email]> wrote:
> Behavior>>formatterClass
>        ^Preferences useRBASTForPrettyPrint
>                ifFalse: [ self compilerClass ]
>                ifTrue: [ RBParser ]
>
> This makes no sense for view > prettyPrint which expects the class to
> implement #format:in:notifying:contentsSymbol: (only implemented by
> RBParser).

Thanks for the report: http://code.google.com/p/pharo/issues/detail?id=919.

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project