Inactive Proposal Computers created when triggering first content assist [message #1732449] |
Tue, 17 May 2016 12:12 |
Simon Laffoy Messages: 19 Registered: January 2015 |
Junior Member |
|
|
Hi,
I am curious why, when a user first triggers content assist in a session, all CompletionProposalComputers are created, even those which are turned off in Java > Editor > Content Assist > Advanced.
This happens in the private synchronized method 'getComputer(...)' of the CompletionProposalComputerDescriptor class (it is a small method).
private synchronized IJavaCompletionProposalComputer getComputer(boolean canCreate) throws CoreException, InvalidRegistryObjectException {
if (fComputer == null && canCreate && !fTriedLoadingComputer && (fActivate || isPluginLoaded())) {
fTriedLoadingComputer= true;
fComputer= createComputer();
}
return fComputer;
}
It seems to me that there should be a good reason for this, but I can't think what it is, and so it seems inefficient.
Many Thanks,
Simon Laffoy
|
|
|
Powered by
FUDForum. Page generated in 0.03507 seconds