Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Inactive Proposal Computers created when triggering first content assist
Inactive Proposal Computers created when triggering first content assist [message #1732449] Tue, 17 May 2016 12:12
Simon Laffoy is currently offline Simon LaffoyFriend
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
Previous Topic:Prevent Eclipse from passing -Dfile.encoding to projects
Next Topic:Cannot install additional software
Goto Forum:
  


Current Time: Fri Apr 19 18:59:26 GMT 2024

Powered by FUDForum. Page generated in 0.02922 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top