类org.eclipse.jface.text.presentation.IPresentationDamager源码实例Demo

下面列出了怎么用org.eclipse.jface.text.presentation.IPresentationDamager的API类实例代码及写法,或者点击链接到github查看源代码。

@Override
public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
	XtextPresentationReconciler reconciler = getPresentationReconcilerProvider().get();
	reconciler.setDocumentPartitioning(getDocumentPartitioning(sourceViewer));
	IPresentationRepairer repairer = repairerProvider.get();
	IPresentationDamager damager = damagerProvider.get();
	String[] types = partitionTypesMapper.getSupportedPartitionTypes();
	for (String partitionType : types) {
		reconciler.setRepairer(repairer, partitionType);
		reconciler.setDamager(damager, partitionType);
	}
	return reconciler;
}
 
源代码2 项目: tm4e   文件: TMPresentationReconciler.java
@Override
public IPresentationDamager getDamager(String contentType) {
	return null;
}
 
protected Tester(IPresentationDamager damager) {
	this.damager = damager;
	doc = createDocument("");
	damager.setDocument(doc);
	doc.addDocumentListener(this);
}
 
protected IPresentationDamager createRegionDamager() {
	return new PresentationDamager();
}
 
源代码5 项目: xtext-eclipse   文件: DefaultUiModule.java
public Class<? extends IPresentationDamager> bindIPresentationDamager() {
	return PresentationDamager.class;
}
 
protected IPresentationDamager createRegionDamager() {
	return new PresentationDamager();
}
 
protected IPresentationDamager createRegionDamager() {
	return new PresentationDamager();
}
 
 类所在包
 类方法
 同包方法