@Override protected List<ICompletionProposal> sortProposals(List<ICompletionProposal> proposals, IProgressMonitor monitor, ContentAssistInvocationContext context) { ProposalSorterRegistry.getDefault().getCurrentSorter().sortProposals(context, proposals); return proposals; }
@Override protected List<ICompletionProposal> sortProposals(List<ICompletionProposal> proposals, IProgressMonitor monitor, ContentAssistInvocationContext context) { ProposalSorterRegistry.getDefault().getCurrentSorter().sortProposals(context, proposals); return proposals; }
protected List filterAndSortProposals(List proposals, IProgressMonitor monitor, ContentAssistInvocationContext context) { ProposalSorterRegistry.getDefault().getCurrentSorter().sortProposals(context, proposals); return proposals; }
/** * Sets the current proposal sorter into the content assistant. * * @since 3.8 * @see ProposalSorterRegistry#getCurrentSorter() the sorter used if <code>true</code> */ private void setContentAssistSorter() { ProposalSorterHandle currentSorter= ProposalSorterRegistry.getDefault().getCurrentSorter(); try { fAssistant.setSorter(currentSorter.getSorter()); } catch (InvalidRegistryObjectException x) { JavaPlugin.log(currentSorter.createExceptionStatus(x)); } catch (CoreException x) { JavaPlugin.log(currentSorter.createExceptionStatus(x)); } catch (RuntimeException x) { JavaPlugin.log(currentSorter.createExceptionStatus(x)); } }
/** * Sets the current proposal sorter into the content assistant. * * @since 3.8 * @see ProposalSorterRegistry#getCurrentSorter() the sorter used if <code>true</code> */ private void setContentAssistSorter() { ProposalSorterHandle currentSorter= ProposalSorterRegistry.getDefault().getCurrentSorter(); try { fAssistant.setSorter(currentSorter.getSorter()); } catch (InvalidRegistryObjectException x) { JavaPlugin.log(currentSorter.createExceptionStatus(x)); } catch (CoreException x) { JavaPlugin.log(currentSorter.createExceptionStatus(x)); } catch (RuntimeException x) { JavaPlugin.log(currentSorter.createExceptionStatus(x)); } }