@Override public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) { QuickAssistAssistant assistant = new QuickAssistAssistant(); assistant.setQuickAssistProcessor(new JsonQuickAssistProcessor(new QuickFixer())); assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer)); return assistant; }
public PyCorrectionAssistant() { if (PlatformUtils.isLinuxPlatform()) { // Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=508245 (hack can be removed when that's fixed). try { Field field = QuickAssistAssistant.class.getDeclaredField("fQuickAssistAssistantImpl"); field.setAccessible(true); ContentAssistant assistant = (ContentAssistant) field.get(this); ContentAssistHackingAroundBugs.fixAssistBugs(assistant); } catch (Throwable e) { // Just ignore if this hack fails. } } }
@Override public IQuickAssistAssistant getQuickAssistAssistant( ISourceViewer sourceViewer) { QuickAssistAssistant assistant= new AnalysisQuickAssistAssistant((AtlEditor) this.getEditor()); return assistant; }
@Override protected IQuickAssistProcessor createConsoleQuickAssistProcessor(QuickAssistAssistant quickAssist) { return new PydevConsoleQuickAssistProcessor((PyCorrectionAssistant) quickAssist); }
/** * @return the assistant that should handle quick assist requests (quick fixes) */ protected abstract IQuickAssistProcessor createConsoleQuickAssistProcessor(QuickAssistAssistant quickAssist);