[update 1.4] #14326 NonInteractiveUIManager improved

classic Classic list List threaded Threaded
1 message Options
Marcus Denker-4 Marcus Denker-4
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[update 1.4] #14326 NonInteractiveUIManager improved

14326
-----

Issue 5227: NonInteractiveUIManager should implement #syntaxErrorNotificationDefaultAction:
                http://code.google.com/p/pharo/issues/detail?id=5227

Thanks Camillo Bruni!

Primarily fixed startup errors for loaded scripts

- CodeLoader prints out SyntaxErrors and the filename if a script fails to load

- added
CommandLine
UIManager which should be an interactive implementation for being used on the terminal

- NonInteractiveUIManager inherits from
CommandLine
UIManager so that the logging facility can be shared

- Cleaned up SyntaxError
        - added direct initializers with SyntaxErrorNotification:
        - properly color the displayed code
        - selec the error message
        - display the error message in the title
        - double click on the class name opens the debugger

- Cleaned up users of SyntaxErrorNotification:
        - provide the code in raw format without included error message

- changed the notion of headless and interactive on SmalltalkImage
        - headless == no display attached
        - noninteractive == no user input (previously the negation of headless)
        - added new possible commmandline option -interactive

- added convenience method in String >> #lineNumberCorrespondingToIndex: used for formatting the syntax errors


--
Marcus Denker -- http://marcusdenker.de


Loading...