|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.drjava.model.DefaultLightWeightParsingControl
public final class DefaultLightWeightParsingControl
Default light-weight parsing control. This class is declared final because it cannot be robustly subclassed because the constructor starts a thread.
Constructor Summary | |
---|---|
DefaultLightWeightParsingControl(AbstractGlobalModel model)
Create the default light-weight parsing control. |
Method Summary | |
---|---|
void |
addListener(LightWeightParsingListener l)
Add the listener to this controller. |
void |
delay()
Delay the next update. |
String |
getEnclosingClassName(OpenDefinitionsDocument doc)
Return the last enclosing class name for the specified document, "" if not inside a class, or null if unknown. |
List<LightWeightParsingListener> |
getListeners()
|
void |
removeAllListeners()
Remove all listeners from this controller. |
void |
removeListener(LightWeightParsingListener l)
Remove the listener from this controller. |
void |
reset()
Reset light-weight parsing. |
void |
setAutomaticUpdates(boolean b)
Start or stop automatic updates. |
void |
update(OpenDefinitionsDocument doc)
Perform light-weight parsing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLightWeightParsingControl(AbstractGlobalModel model)
model
- the modelMethod Detail |
---|
public void update(OpenDefinitionsDocument doc)
update
in interface LightWeightParsingControl
doc
- the document to parse.public void setAutomaticUpdates(boolean b)
setAutomaticUpdates
in interface LightWeightParsingControl
b
- true
to start or false
to stop automatic updatespublic void delay()
delay
in interface LightWeightParsingControl
public void reset()
reset
in interface LightWeightParsingControl
public String getEnclosingClassName(OpenDefinitionsDocument doc)
getEnclosingClassName
in interface LightWeightParsingControl
doc
- the document for which we want the information
public void addListener(LightWeightParsingListener l)
addListener
in interface LightWeightParsingControl
l
- listener to addpublic void removeListener(LightWeightParsingListener l)
removeListener
in interface LightWeightParsingControl
public void removeAllListeners()
removeAllListeners
in interface LightWeightParsingControl
public List<LightWeightParsingListener> getListeners()
getListeners
in interface LightWeightParsingControl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |