commit | 21164d932ea78ae19ea4470811b45927358d75c5 | [log] [tgz] |
---|---|---|
author | Jinbo Wang <jinbwan@microsoft.com> | Tue Feb 22 14:13:39 2022 +0800 |
committer | Roland Grunberg <rgrunber@redhat.com> | Wed Mar 09 15:32:24 2022 -0500 |
tree | 0609ff47d00e259d95f756edd1f8101d9d3bf1c1 | |
parent | 3fed517642100823c94c796251b67557ca288218 [diff] |
Bug 578817: Check ignored types before creating certain proposals This commit allows the CompletionEngine to skip the specified types before it creates the type completion proposals. The CompletionRequestor subclass is able to override the method 'isIgnored(char[] fullTypeName)' to apply its own type filters. The benefit of checking the ignored types in CompletionEngine is that it can avoid creating unnecessary CompletionProposals. For some CompletionProposal, it takes up a lot of computation time when creating the relevance property. For example, when the constructor CompletionProposal computes relevance, it will resolve TypeBinding for each proposed type and use TypeBinding to check the compatibility. Resolving a large number of TypeBindings in completion can slow down completion speed a lot. Signed-off-by: Jinbo Wang <jinbwan@microsoft.com> Change-Id: I9df12db5084533c2b2be3fde7c5519bb5869a96b Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/191039 Tested-by: JDT Bot <jdt-bot@eclipse.org> Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
This is the core part of Eclipse's Java development tools. It contains the non-UI support for compiling and working with Java code, including the following:
For more information and important links, refer to the [JDT wiki page] 1 or the [JDT project overview page] 2.