本文整理汇总了Java中org.eclipse.xtext.ui.editor.reconciler.XtextReconciler类的典型用法代码示例。如果您正苦于以下问题:Java XtextReconciler类的具体用法?Java XtextReconciler怎么用?Java XtextReconciler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XtextReconciler类属于org.eclipse.xtext.ui.editor.reconciler包,在下文中一共展示了XtextReconciler类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: waitForValidation
import org.eclipse.xtext.ui.editor.reconciler.XtextReconciler; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
protected void waitForValidation() {
// Editor tests frequently work by modifying the document. We first need to wait for the reconciler to run, otherwise we may
// actually get results from before a document change is reflected in the document's resource, leading to spurious errors.
// Note that the XtextReconciler runs with a delay of 500ms.
waitForJobsOfFamily(XtextReconciler.class.getName());
super.waitForValidation();
}
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:10,代码来源:AbstractXtextEditorTest.java
示例2: waitForReconcileToStartAndFinish
import org.eclipse.xtext.ui.editor.reconciler.XtextReconciler; //导入依赖的package包/类
private void waitForReconcileToStartAndFinish() {
Optional<XtextReconciler> foundReconciler = Optional.ofNullable(getInternalSourceViewer())
.filter(IAdaptable.class::isInstance).map(IAdaptable.class::cast)
.map(a -> a.getAdapter(IReconciler.class)).filter(XtextReconciler.class::isInstance)
.map(XtextReconciler.class::cast);
if (!foundReconciler.isPresent()) {
return;
}
JobStartListener listener = new JobStartListener();
XtextReconciler reconciler = foundReconciler.get();
try {
reconciler.join();
reconciler.addJobChangeListener(listener);
reconciler.forceReconcile();
synchronized (listener) {
while (!listener.isStarted()) {
listener.wait();
}
}
reconciler.join();
} catch (InterruptedException e) {
return;
} finally {
reconciler.removeJobChangeListener(listener);
}
}
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:28,代码来源:CooperateCDOXtextEditor.java
示例3: SadlUiModule
import org.eclipse.xtext.ui.editor.reconciler.XtextReconciler; //导入依赖的package包/类
public SadlUiModule(AbstractUIPlugin plugin) {
super(plugin);
IOConsoleOutputStream iocos = SadlConsole
.getOutputStream(MessageType.INFO);
System.setOut(new PrintStream(iocos));
System.setErr(new PrintStream(SadlConsole
.getOutputStream(MessageType.ERROR)));
// this is to prevent XtextReconcilerDebuger from continually reporting
// errors when debug level isn't initialized
Logger log = Logger.getLogger(XtextReconciler.class);
log.setLevel(Level.WARN);
}
开发者ID:crapo,项目名称:sadlos2,代码行数:14,代码来源:SadlUiModule.java
示例4: JenaUiModule
import org.eclipse.xtext.ui.editor.reconciler.XtextReconciler; //导入依赖的package包/类
public JenaUiModule(AbstractUIPlugin plugin) {
super(plugin);
IOConsoleOutputStream iocos = SadlConsole.getOutputStream(MessageType.INFO);
System.setOut(new PrintStream(iocos));
System.setErr(new PrintStream(SadlConsole.getOutputStream(MessageType.ERROR)));
// this is to prevent XtextReconcilerDebuger from continually reporting errors when debug level isn't initialized
Logger log = Logger.getLogger(XtextReconciler.class);
log.setLevel(Level.WARN);
}
开发者ID:crapo,项目名称:sadlos2,代码行数:11,代码来源:JenaUiModule.java
示例5: bindXtextReconciler
import org.eclipse.xtext.ui.editor.reconciler.XtextReconciler; //导入依赖的package包/类
/** Custom XtextReconciler. */
public Class<? extends XtextReconciler> bindXtextReconciler() {
return N4JSReconciler.class;
}
开发者ID:eclipse,项目名称:n4js,代码行数:5,代码来源:N4JSUiModule.java
示例6: bindIReconciler
import org.eclipse.xtext.ui.editor.reconciler.XtextReconciler; //导入依赖的package包/类
public Class<? extends IReconciler> bindIReconciler() {
return XtextReconciler.class;
}
开发者ID:cplutte,项目名称:bts,代码行数:4,代码来源:DefaultUiModule.java
注:本文中的org.eclipse.xtext.ui.editor.reconciler.XtextReconciler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论