Search in sources :

Example 1 with JsonQuickAssistProcessor

use of com.reprezen.swagedit.core.assist.JsonQuickAssistProcessor in project KaiZen-OpenAPI-Editor by RepreZen.

the class JsonSourceViewerConfiguration method getQuickAssistAssistant.

@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    QuickAssistAssistant assistant = new QuickAssistAssistant();
    assistant.setQuickAssistProcessor(new JsonQuickAssistProcessor(new QuickFixer()));
    assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));
    return assistant;
}
Also used : JsonQuickAssistProcessor(com.reprezen.swagedit.core.assist.JsonQuickAssistProcessor) QuickAssistAssistant(org.eclipse.jface.text.quickassist.QuickAssistAssistant) IQuickAssistAssistant(org.eclipse.jface.text.quickassist.IQuickAssistAssistant) QuickFixer(com.reprezen.swagedit.core.quickfix.QuickFixer)

Aggregations

JsonQuickAssistProcessor (com.reprezen.swagedit.core.assist.JsonQuickAssistProcessor)1 QuickFixer (com.reprezen.swagedit.core.quickfix.QuickFixer)1 IQuickAssistAssistant (org.eclipse.jface.text.quickassist.IQuickAssistAssistant)1 QuickAssistAssistant (org.eclipse.jface.text.quickassist.QuickAssistAssistant)1