use of org.eclipse.jface.text.quickassist.IQuickAssistAssistant in project eclipse.platform.text by eclipse.
the class TextSourceViewerConfiguration method getQuickAssistAssistant.
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
if (fPreferenceStore == null || !fPreferenceStore.getBoolean(SpellingService.PREFERENCE_SPELLING_ENABLED))
return null;
QuickAssistAssistant assistant = new QuickAssistAssistant();
assistant.setQuickAssistProcessor(new SpellingCorrectionProcessor());
// $NON-NLS-1$
assistant.setRestoreCompletionProposalSize(EditorsPlugin.getDefault().getDialogSettingsSection("quick_assist_proposal_size"));
assistant.setInformationControlCreator(getQuickAssistAssistantInformationControlCreator());
return assistant;
}
Aggregations