Java 类org.eclipse.jface.text.quickassist.QuickAssistAssistant 实例源码

项目:KaiZen-OpenAPI-Editor    文件:JsonSourceViewerConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    QuickAssistAssistant assistant = new QuickAssistAssistant();
    assistant.setQuickAssistProcessor(new JsonQuickAssistProcessor(new QuickFixer()));
    assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));
    return assistant;
}
项目:Pydev    文件:PyCorrectionAssistant.java   
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.
        }
    }
}
项目:anatlyzer    文件:AtlSourceViewerConfigurationExt.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant( ISourceViewer sourceViewer) {
    QuickAssistAssistant assistant= new AnalysisQuickAssistAssistant((AtlEditor) this.getEditor());
    return assistant;
}
项目:Pydev    文件:PydevConsole.java   
@Override
protected IQuickAssistProcessor createConsoleQuickAssistProcessor(QuickAssistAssistant quickAssist) {
    return new PydevConsoleQuickAssistProcessor((PyCorrectionAssistant) quickAssist);
}
项目:Pydev    文件:ScriptConsole.java   
/**
 * @return the assistant that should handle quick assist requests (quick fixes)
 */
protected abstract IQuickAssistProcessor createConsoleQuickAssistProcessor(QuickAssistAssistant quickAssist);