Пример #1
0
  /** {@inheritDoc} */
  @Override
  public AdditionalTabTargets getSuggestions(
      final int arg, final IntelligentCommandContext context) {
    final AdditionalTabTargets res = new AdditionalTabTargets();

    if (arg == 0) {
      res.excludeAll();
      res.include(TabCompletionType.CHANNEL_NICK);
      res.include(TabCompletionType.CHANNEL);
      res.include(TabCompletionType.QUERY_NICK);
    }

    return res;
  }
Пример #2
0
  /** {@inheritDoc} */
  @Override
  public AdditionalTabTargets getSuggestions(
      final int arg, final IntelligentCommandContext context) {
    final AdditionalTabTargets res = new AdditionalTabTargets();

    if (arg == 0) {
      res.exclude(TabCompletionType.COMMAND);
    } else if (arg == 1) {
      res.add("VERSION");
      res.add("ACTION");
      res.add("USERINFO");
      res.add("CLIENTINFO");
      res.add("PING");
      res.add("FINGER");
      res.add("SOURCE");
      res.add("TIME");
      res.excludeAll();
    }

    return res;
  }