|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.rules.RuleBasedScanner
org.eclipse.m2m.atl.adt.ui.text.AbstractScanner
org.eclipse.m2m.atl.adt.ui.text.atl.AtlCodeScanner
public class AtlCodeScanner
This class controls the highlight syntaxing coloration for the ATL editor.
Nested Class Summary | |
---|---|
class |
AtlCodeScanner.EnumLiteralRule
Rule to detect atl literals. |
class |
AtlCodeScanner.IdentifierRule
Rule to detect atl identifier. |
protected class |
AtlCodeScanner.SymbolRule
Rule to detect symbols. |
Field Summary |
---|
Fields inherited from class org.eclipse.jface.text.rules.RuleBasedScanner |
---|
fColumn, fDefaultReturnToken, fDelimiters, fDocument, fOffset, fRangeEnd, fRules, fTokenOffset, UNDEFINED |
Fields inherited from interface org.eclipse.jface.text.rules.ICharacterScanner |
---|
EOF |
Constructor Summary | |
---|---|
AtlCodeScanner(AtlTextTools textTools)
Creates a new instance of the ATL scanner. |
Method Summary | |
---|---|
void |
adaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent event)
|
boolean |
affectsBehavior(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 |
Methods inherited from class org.eclipse.jface.text.rules.RuleBasedScanner |
---|
getColumn, getLegalLineDelimiters, getTokenLength, getTokenOffset, nextToken, read, setDefaultReturnToken, setRange, setRules, unread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AtlCodeScanner(AtlTextTools textTools)
textTools
- the ATL text toolsMethod Detail |
---|
public void adaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent event)
adaptToPreferenceChange
in class AbstractScanner
AbstractScanner.adaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent)
public boolean affectsBehavior(org.eclipse.jface.util.PropertyChangeEvent event)
affectsBehavior
in class AbstractScanner
AbstractScanner.affectsBehavior(org.eclipse.jface.util.PropertyChangeEvent)
protected java.util.List<org.eclipse.jface.text.rules.IRule> createRules()
createRules
in class AbstractScanner
AbstractScanner.createRules()
protected java.lang.String[] getPropertyNames()
getPropertyNames
in class AbstractScanner
AbstractScanner.getPropertyNames()
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |