Package jline

Examples of jline.NullCompletor


      for (int j = 0; cmds != null && j < cmds.length; j++) {
        Completor[] comps = beeLine.commandHandlers[i].getParameterCompletors();
        List<Completor> compl = new LinkedList<Completor>();
        compl.add(new SimpleCompletor(BeeLine.COMMAND_PREFIX + cmds[j]));
        compl.addAll(Arrays.asList(comps));
        compl.add(new NullCompletor()); // last param no complete
        completors.add(new ArgumentCompletor(
            compl.toArray(new Completor[0])));
      }
    }
    setCompletors(completors.toArray(new Completor[0]));
View Full Code Here


    this.beeLine = beeLine;
    name = names[0];
    this.names = names;
    this.helpText = helpText;
    if (completors == null || completors.length == 0) {
      parameterCompletors = new Completor[] { new NullCompletor() };
    } else {
      List<Completor> c = new LinkedList<Completor>(Arrays.asList(completors));
      c.add(new NullCompletor());
      parameterCompletors = c.toArray(new Completor[0]);
    }
  }
View Full Code Here

    this.beeLine = beeLine;
    name = names[0];
    this.names = names;
    this.helpText = helpText;
    if (completors == null || completors.length == 0) {
      parameterCompletors = new Completor[] { new NullCompletor() };
    } else {
      List<Completor> c = new LinkedList<Completor>(Arrays.asList(completors));
      c.add(new NullCompletor());
      parameterCompletors = c.toArray(new Completor[0]);
    }
  }
View Full Code Here

      for (int j = 0; cmds != null && j < cmds.length; j++) {
        Completor[] comps = beeLine.commandHandlers[i].getParameterCompletors();
        List<Completor> compl = new LinkedList<Completor>();
        compl.add(new SimpleCompletor(BeeLine.COMMAND_PREFIX + cmds[j]));
        compl.addAll(Arrays.asList(comps));
        compl.add(new NullCompletor()); // last param no complete
        completors.add(new ArgumentCompletor(
            compl.toArray(new Completor[0])));
      }
    }
    setCompletors(completors.toArray(new Completor[0]));
View Full Code Here

TOP

Related Classes of jline.NullCompletor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.