diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-07 06:58:50 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-07 06:58:50 +0000 |
commit | e284af21ab7ad05e5bfe091aaf9a00104de8e7ef (patch) | |
tree | d0dadb9842f1304f894f24a4d960eae18b9ab217 | |
parent | d5da808d58caa132a92eb7ff9fd7ffcd660ca9ed (diff) |
Update to use a Tuscany specific completor that can complete each command argument
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@961257 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/JLine.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/JLine.java b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/JLine.java index d09a72f84f..ed6e392eb3 100644 --- a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/JLine.java +++ b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/JLine.java @@ -61,9 +61,11 @@ public class JLine { reader.setBellEnabled(false); // TODO: write a Completor specific to this that can handle the individual command arguments List<Completor> completors = new LinkedList<Completor>(); - completors.add(new SimpleCompletor(Shell.COMMANDS)); - completors.add(new FileNameCompletor()); - reader.addCompletor(new ArgumentCompletor(completors)); +// completors.add(new SimpleCompletor(Shell.COMMANDS)); +// completors.add(new ICURICompletor(shell.node)); +// completors.add(new FileNameCompletor()); +// reader.addCompletor(new ArgumentCompletor(completors)); + reader.addCompletor(new TShellCompletor(shell.node)); return reader; } |