Class AtlCodeScanner
- java.lang.Object
-
- org.eclipse.jface.text.rules.RuleBasedScanner
-
- org.eclipse.m2m.atl.adt.ui.text.AbstractScanner
-
- org.eclipse.m2m.atl.adt.ui.text.atl.AtlCodeScanner
-
- All Implemented Interfaces:
org.eclipse.jface.text.rules.ICharacterScanner,org.eclipse.jface.text.rules.ITokenScanner
public class AtlCodeScanner extends AbstractScanner
This class controls the highlight syntaxing coloration for the ATL editor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAtlCodeScanner.EnumLiteralRuleRule to detect atl literals.classAtlCodeScanner.IdentifierRuleRule to detect atl identifier.protected classAtlCodeScanner.SymbolRuleRule to detect symbols.
-
Constructor Summary
Constructors Constructor Description AtlCodeScanner(AtlTextTools textTools)Creates a new instance of the ATL scanner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent event)booleanaffectsBehavior(org.eclipse.jface.util.PropertyChangeEvent event)protected java.util.List<org.eclipse.jface.text.rules.IRule>createRules()Creates the list of rules controlling this scanner.protected java.lang.String[]getPropertyNames()Returns a list of constants matching the token.-
Methods inherited from class org.eclipse.m2m.atl.adt.ui.text.AbstractScanner
getTextTools, getToken, initialize
-
-
-
-
Constructor Detail
-
AtlCodeScanner
public AtlCodeScanner(AtlTextTools textTools)
Creates a new instance of the ATL scanner.- Parameters:
textTools- the ATL text tools
-
-
Method Detail
-
adaptToPreferenceChange
public void adaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent event)
- Overrides:
adaptToPreferenceChangein classAbstractScanner- See Also:
AbstractScanner.adaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent)
-
affectsBehavior
public boolean affectsBehavior(org.eclipse.jface.util.PropertyChangeEvent event)
- Overrides:
affectsBehaviorin classAbstractScanner- See Also:
AbstractScanner.affectsBehavior(org.eclipse.jface.util.PropertyChangeEvent)
-
createRules
protected java.util.List<org.eclipse.jface.text.rules.IRule> createRules()
Creates the list of rules controlling this scanner.- Specified by:
createRulesin classAbstractScanner- Returns:
- the list of rules
- See Also:
AbstractScanner.createRules()
-
getPropertyNames
protected java.lang.String[] getPropertyNames()
Returns a list of constants matching the token.- Specified by:
getPropertyNamesin classAbstractScanner- Returns:
- the list of constants
- See Also:
AbstractScanner.getPropertyNames()
-
-