Skip to content

Commit

Permalink
Tab complete fix for Groovy console
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalv committed Nov 8, 2012
1 parent bf92152 commit a0f2513
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -684,7 +684,13 @@ protected List<String> allNamesIn(String object) {
final List<String>[] variables = new List[1];

groovyThread.enqueue(
new ScriptAction( "zzz1 = new java.util.ArrayList();",
new ScriptAction(
"zzz1 = [];" +
(object.equals("this")
? "zzz1 = binding.variables.collect{it.key}; "
: "") +
"zzz1.addAll(" + object +".metaClass.methods.name.unique()); "+
"zzz1.unique()",
new Hook() {
public void run(Object o) {
synchronized (variables) {
Expand Down

0 comments on commit a0f2513

Please sign in to comment.