|
||||||||||
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
public abstract class AbstractScanner
Its subclasses are only responsible for providing a list of preference keys based on which tokens are generated and to use this tokens to define the rules controlling this scanner.
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 | |
---|---|
AbstractScanner(AtlTextTools texttools)
Creates an abstract ATL scanner. |
Method Summary | |
---|---|
void |
adaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent event)
|
boolean |
affectsBehavior(org.eclipse.jface.util.PropertyChangeEvent event)
|
protected abstract java.util.List |
createRules()
Creates the list of rules controlling this scanner. |
protected abstract java.lang.String[] |
getPropertyNames()
Returns a list of constants matching the token. |
protected AtlTextTools |
getTextTools()
|
protected org.eclipse.jface.text.rules.Token |
getToken(java.lang.String color)
Return the token matching the color value. |
void |
initialize()
Must be called after the constructor has been called. |
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 AbstractScanner(AtlTextTools texttools)
Method Detail |
---|
public void adaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent event)
public boolean affectsBehavior(org.eclipse.jface.util.PropertyChangeEvent event)
protected abstract java.util.List createRules()
protected abstract java.lang.String[] getPropertyNames()
protected AtlTextTools getTextTools()
protected org.eclipse.jface.text.rules.Token getToken(java.lang.String color)
color
- the color name of the key
public final void initialize()
|
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 |