| Summary: | JdtTypesProposalProvider: completion contains imported package name | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Victor Noël <victor.noel.irit> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow |
| Version: | 1.0.0 | Flags: | sebastian.zarnekow:
helios+
|
| Target Milestone: | SR1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Victor Noël
@Inject
private ITypesProposalProvider.IScopableTypesProposalProvider typesProposalProvider;
@Override
public void completeReferenceHolder_CustomizedReference(EObject model, Assignment assignment,
ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
IScope scope = getScopeProvider().getScope(model, ContentAssistTestLanguagePackage.Literals.REFERENCE_HOLDER__CUSTOMIZED_REFERENCE);
ITypesProposalProvider scopedProposalProvider = typesProposalProvider.getScopedProposalProvider(model, scope);
scopedProposalProvider.createTypeProposals(this, context, acceptor);
}
Fixed in HEAD.
Use the newly introduced ITypesProposalProvider.IScopableTypesProposalProvider to create proposals that are aware of imports. This API is preliminary as it is designed as a backwards compatible workaround for 1.0.1. Please note that it is likely to change in Indigo.
Closing bug which were set to RESOLVED before Eclipse Neon.0. |