1 May 2004 10:27
Enhanced GroovyConsole
I thought that the GroovyConsole was... lacking. But considering that
there is a lot of fun stuff going on with stack height bugs and
auto-bytecode-generated-closures and optional parentheses it's easy to
see how optional GUI stuff could get overlooked. So I did some tweaking
to it myself. (attached as full file, The diff is actually longer than
the whole file).
* New, Open, Save implemented.
* New opens an entirely new blank console
* Once opened or saved the filename is preserved and
contents not cleared from the editing area
* save prompts for a filename if absent
* and save on close for "oops, that's not maximize!"
* Added mnemonics
* Is there an easy way to get Ints from a char or
a string? Using hex codes seemed easier
* Added some more keyboard shortcuts
* split bar is in the middelish now
Prettier, and a bit more usable. And I'll grant whatever copyright blah
blah blah may be needed to donate my changes to Groovy.
--Danno
(I should have gone to bed three hours ago)
package groovy.ui import groovy.swing.SwingBuilder(Continue reading)
RSS Feed