Package org.eclipse.jface.text.rules
Class RuleBasedDamagerRepairer
java.lang.Object
org.eclipse.jface.text.rules.DefaultDamagerRepairer
org.eclipse.jface.text.rules.RuleBasedDamagerRepairer
- All Implemented Interfaces:
IPresentationDamager,IPresentationRepairer
@Deprecated(forRemoval=true,
since="2025-12")
public class RuleBasedDamagerRepairer
extends DefaultDamagerRepairer
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
Fields inherited from class org.eclipse.jface.text.rules.DefaultDamagerRepairer
fDefaultTextAttribute, fDocument, fScanner -
Constructor Summary
ConstructorsConstructorDescriptionRuleBasedDamagerRepairer(RuleBasedScanner scanner) Deprecated.RuleBasedDamagerRepairer(RuleBasedScanner scanner, TextAttribute defaultTextAttribute) Deprecated, for removal: This API element is subject to removal in a future version.use RuleBasedDamagerRepairer(RuleBasedScanner) instead -
Method Summary
Methods inherited from class org.eclipse.jface.text.rules.DefaultDamagerRepairer
addRange, createPresentation, endOfLineOf, getDamageRegion, getTokenTextAttribute, setDocument
-
Constructor Details
-
RuleBasedDamagerRepairer
@Deprecated(forRemoval=true, since="2025-12") public RuleBasedDamagerRepairer(RuleBasedScanner scanner, TextAttribute defaultTextAttribute) Deprecated, for removal: This API element is subject to removal in a future version.use RuleBasedDamagerRepairer(RuleBasedScanner) insteadCreates a damager/repairer that uses the given scanner and returns the given default text attribute if the current token does not carry a text attribute.- Parameters:
scanner- the rule based scanner to be useddefaultTextAttribute- the text attribute to be returned if none is specified by the current token, may not benull
-
RuleBasedDamagerRepairer
Deprecated.Creates a damager/repairer that uses the given scanner. The scanner may not benulland is assumed to return only token that carry text attributes.- Parameters:
scanner- the rule based scanner to be used, may not benull- Since:
- 2.0
-
DefaultDamagerRepairer