/*int timeout = DLTKUIPlugin.getDefault().getPreferenceStore()
.getInt(PreferenceConstants.CODEASSIST_TIMEOUT);*/
int timeout = 5000;
ISourceModule module = getSourceModule(ifile);
ScriptCompletionProposalCollector collector = getCompletionCollector(module);
module.codeComplete(offset, collector, timeout);
IScriptCompletionProposal[] proposals =
collector.getScriptCompletionProposals();
Arrays.sort(proposals, new ScriptCompletionProposalComparator());