本文整理汇总了Java中org.eclipse.jface.text.quickassist.QuickAssistAssistant类的典型用法代码示例。如果您正苦于以下问题:Java QuickAssistAssistant类的具体用法?Java QuickAssistAssistant怎么用?Java QuickAssistAssistant使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QuickAssistAssistant类属于org.eclipse.jface.text.quickassist包,在下文中一共展示了QuickAssistAssistant类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getQuickAssistAssistant
import org.eclipse.jface.text.quickassist.QuickAssistAssistant; //导入依赖的package包/类
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
QuickAssistAssistant assistant = new QuickAssistAssistant();
assistant.setQuickAssistProcessor(new JsonQuickAssistProcessor(new QuickFixer()));
assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));
return assistant;
}
开发者ID:RepreZen,项目名称:KaiZen-OpenAPI-Editor,代码行数:8,代码来源:JsonSourceViewerConfiguration.java
示例2: PyCorrectionAssistant
import org.eclipse.jface.text.quickassist.QuickAssistAssistant; //导入依赖的package包/类
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.
}
}
}
开发者ID:fabioz,项目名称:Pydev,代码行数:14,代码来源:PyCorrectionAssistant.java
示例3: getQuickAssistAssistant
import org.eclipse.jface.text.quickassist.QuickAssistAssistant; //导入依赖的package包/类
@Override
public IQuickAssistAssistant getQuickAssistAssistant( ISourceViewer sourceViewer) {
QuickAssistAssistant assistant= new AnalysisQuickAssistAssistant((AtlEditor) this.getEditor());
return assistant;
}
开发者ID:anatlyzer,项目名称:anatlyzer,代码行数:6,代码来源:AtlSourceViewerConfigurationExt.java
示例4: createConsoleQuickAssistProcessor
import org.eclipse.jface.text.quickassist.QuickAssistAssistant; //导入依赖的package包/类
@Override
protected IQuickAssistProcessor createConsoleQuickAssistProcessor(QuickAssistAssistant quickAssist) {
return new PydevConsoleQuickAssistProcessor((PyCorrectionAssistant) quickAssist);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:5,代码来源:PydevConsole.java
示例5: createConsoleQuickAssistProcessor
import org.eclipse.jface.text.quickassist.QuickAssistAssistant; //导入依赖的package包/类
/**
* @return the assistant that should handle quick assist requests (quick fixes)
*/
protected abstract IQuickAssistProcessor createConsoleQuickAssistProcessor(QuickAssistAssistant quickAssist);
开发者ID:fabioz,项目名称:Pydev,代码行数:5,代码来源:ScriptConsole.java
注:本文中的org.eclipse.jface.text.quickassist.QuickAssistAssistant类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论