org.eclipse.jface.text.presentation.IPresentationDamager Java Examples
The following examples show how to use
org.eclipse.jface.text.presentation.IPresentationDamager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XtextSourceViewerConfiguration.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@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; }
Example #2
Source File: TMPresentationReconciler.java From tm4e with Eclipse Public License 1.0 | 4 votes |
@Override public IPresentationDamager getDamager(String contentType) { return null; }
Example #3
Source File: DamagerRepairerPerformanceTest.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
protected Tester(IPresentationDamager damager) { this.damager = damager; doc = createDocument(""); damager.setDocument(doc); doc.addDocumentListener(this); }
Example #4
Source File: DamagerRepairerPerformanceTest.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
protected IPresentationDamager createRegionDamager() { return new PresentationDamager(); }
Example #5
Source File: DefaultUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IPresentationDamager> bindIPresentationDamager() { return PresentationDamager.class; }
Example #6
Source File: AbstractDamagerRepairerTest.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
protected IPresentationDamager createRegionDamager() { return new PresentationDamager(); }
Example #7
Source File: AbstractDamagerRepairerTest.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
protected IPresentationDamager createRegionDamager() { return new PresentationDamager(); }