• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

devonfw / IDEasy / 31189754843

07 Aug 2026 02:52PM UTC coverage: 72.932% (+0.05%) from 72.88%
31189754843

push

github

web-flow
#2192-support-for-auto-completion-synonyms (#2204)

Co-authored-by: Jörg Hohwiller <hohwille@users.noreply.github.com>

5100 of 7743 branches covered (65.87%)

Branch coverage included in aggregate %.

13332 of 17530 relevant lines covered (76.05%)

3.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
cli/src/main/java/com/devonfw/tools/ide/completion/CompletionCandidateCollectorAdapter.java
1
package com.devonfw.tools.ide.completion;
2

3
import java.util.List;
4
import java.util.Set;
5

6
import com.devonfw.tools.ide.commandlet.Commandlet;
7
import com.devonfw.tools.ide.property.Property;
8

9
/**
10
 * Implementation of {@link CompletionCandidateCollector} that wraps an existing {@link CompletionCandidateCollector} adding a prefix.
11
 */
12
public class CompletionCandidateCollectorAdapter implements CompletionCandidateCollector {
13

14
  private final String prefix;
15

16
  private final CompletionCandidateCollector delegate;
17

18
  /**
19
   * The constructor.
20
   *
21
   * @param prefix the prefix to add to the completions.
22
   * @param delegate the {@link CompletionCandidateCollector} to wrap.
23
   */
24
  public CompletionCandidateCollectorAdapter(String prefix, CompletionCandidateCollector delegate) {
25

26
    super();
×
27
    this.prefix = prefix;
×
28
    this.delegate = delegate;
×
29
  }
×
30

31
  @Override
32
  public void add(String text, String description, Property<?> property, Commandlet commandlet) {
33

34
    this.delegate.add(this.prefix + text, description, property, commandlet);
×
35
  }
×
36

37
  @Override
38
  public List<CompletionCandidate> getCandidates() {
39

40
    return this.delegate.getCandidates();
×
41
  }
42

43
  @Override
44
  public List<CompletionCandidate> getSortedCandidates() {
45

46
    return this.delegate.getSortedCandidates();
×
47
  }
48

49
  @Override
50
  public void disableSorting() {
51

52
    this.delegate.disableSorting();
×
53
  }
×
54

55
  @Override
56
  public Set<String> getAlreadyProvided() {
57

58
    return this.delegate.getAlreadyProvided();
×
59
  }
60
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc