Created
October 19, 2012 08:42
-
-
Save michalbcz/3916997 to your computer and use it in GitHub Desktop.
groovy - run console inside of some context (embedding groovy's gui console)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def c = new groovy.ui.Console(getClass().getClassLoader(), new Binding()) | |
c.setVariable("ctx",this) | |
c.run() | |
def done = false | |
c.frame.windowClosing = {done = true} | |
c.frame.windowClosed = {done = true} | |
while (!done) { | |
sleep(1000) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment