Community
Participate
Working Groups
Hello, When using JdtTypesProposalProvider for createTypeProposals, the completed references contains the complete qualifiedName with the package even if the package is imported. See http://www.eclipse.org/forums/index.php?t=msg&&th=171661&goto=546297#msg_546297
@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.