Search in sources :

Example 6 with IQuickAssistAssistant

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;
}
Also used : SpellingCorrectionProcessor(org.eclipse.ui.texteditor.spelling.SpellingCorrectionProcessor) QuickAssistAssistant(org.eclipse.jface.text.quickassist.QuickAssistAssistant) IQuickAssistAssistant(org.eclipse.jface.text.quickassist.IQuickAssistAssistant)

Aggregations

IQuickAssistAssistant (org.eclipse.jface.text.quickassist.IQuickAssistAssistant)6 QuickAssistAssistant (org.eclipse.jface.text.quickassist.QuickAssistAssistant)5 BndMarkerQuickAssistProcessor (org.bndtools.core.editors.BndMarkerQuickAssistProcessor)2 JsonQuickAssistProcessor (com.reprezen.swagedit.core.assist.JsonQuickAssistProcessor)1 QuickFixer (com.reprezen.swagedit.core.quickfix.QuickFixer)1 IMenuListener (org.eclipse.jface.action.IMenuListener)1 IMenuManager (org.eclipse.jface.action.IMenuManager)1 MenuManager (org.eclipse.jface.action.MenuManager)1 DefaultInformationControl (org.eclipse.jface.text.DefaultInformationControl)1 DocumentEvent (org.eclipse.jface.text.DocumentEvent)1 IDocumentListener (org.eclipse.jface.text.IDocumentListener)1 ITextInputListener (org.eclipse.jface.text.ITextInputListener)1 ITextListener (org.eclipse.jface.text.ITextListener)1 TextEvent (org.eclipse.jface.text.TextEvent)1 CompositeRuler (org.eclipse.jface.text.source.CompositeRuler)1 ISourceViewerExtension3 (org.eclipse.jface.text.source.ISourceViewerExtension3)1 ISourceViewerExtension4 (org.eclipse.jface.text.source.ISourceViewerExtension4)1 IVerticalRuler (org.eclipse.jface.text.source.IVerticalRuler)1 SourceViewerConfiguration (org.eclipse.jface.text.source.SourceViewerConfiguration)1 IPropertyChangeListener (org.eclipse.jface.util.IPropertyChangeListener)1