@Component public class PipeIntoOtherModulesExpansionStrategy extends java.lang.Object implements CompletionExpansionStrategy
Constructor and Description |
---|
PipeIntoOtherModulesExpansionStrategy(ModuleDefinitionRepository moduleDefinitionRepository)
Construct a new PipeIntoOtherModulesExpansionStrategy given a ModuleDefinition repository.
|
Modifier and Type | Method and Description |
---|---|
void |
addProposals(java.lang.String start,
java.util.List<ModuleDescriptor> parseResult,
CompletionKind kind,
int detailLevel,
java.util.List<java.lang.String> proposals)
Perform code completion by adding proposals to the
proposals list. |
boolean |
shouldTrigger(java.lang.String text,
java.util.List<ModuleDescriptor> parseResult,
CompletionKind kind)
Whether this completion should be triggered.
|
@Autowired public PipeIntoOtherModulesExpansionStrategy(ModuleDefinitionRepository moduleDefinitionRepository)
moduleDefinitionRepository
- the repository to check for the existence of the last entered module
definition.public boolean shouldTrigger(java.lang.String text, java.util.List<ModuleDescriptor> parseResult, CompletionKind kind)
CompletionExpansionStrategy
shouldTrigger
in interface CompletionExpansionStrategy
public void addProposals(java.lang.String start, java.util.List<ModuleDescriptor> parseResult, CompletionKind kind, int detailLevel, java.util.List<java.lang.String> proposals)
CompletionExpansionStrategy
proposals
list.addProposals
in interface CompletionExpansionStrategy