|
org.netbeans.modules.parsing.api/1 1.55.0 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.parsing.spi.Scheduler
public abstract class Scheduler
Scheduler defines when tasks should be started. Some SchedulerTasks (like syntax
coloring) are current document sensitive only. It means that such SchedulerTask
is automatically scheduled when currently edited document is changed.
Other tasks may listen on different events. Implementation of Scheduler
just listens on various IDE events, and call one of schedule() methods
when something interesting happens. Implementation of Parsing API just finds
all SchedulerTasks registerred for this Scheduler and reschedules them.
Implementation of this class should be registerred in your manifest.xml file
in "Editors/your mime type" folder.
| Field Summary | |
|---|---|
static Class<? extends Scheduler> |
CURSOR_SENSITIVE_TASK_SCHEDULER
This implementations of Scheduler reschedules all tasks when:
current document is changed (file opened, closed, editor tab switched),
text in the current document is changed,
cusor position is changed
|
static int |
DEFAULT_REPARSE_DELAY
Default reparse delay |
static Class<? extends Scheduler> |
EDITOR_SENSITIVE_TASK_SCHEDULER
This implementations of Scheduler reschedules all tasks when:
current document is changed (file opened, closed, editor tab switched),
text in the current document is changed
|
static Class<? extends Scheduler> |
SELECTED_NODES_SENSITIVE_TASK_SCHEDULER
This implementations of Scheduler reschedules all tasks when
nodes selected in editor are changed. |
| Constructor Summary | |
|---|---|
Scheduler()
|
|
| Method Summary | |
|---|---|
protected abstract SchedulerEvent |
createSchedulerEvent(SourceModificationEvent event)
|
protected void |
schedule(SchedulerEvent event)
Reschedule all tasks registered for this Scheduler (see
SchedulerTask.getSchedulerClass(). |
protected void |
schedule(Source source,
SchedulerEvent event)
Reschedule all tasks registered for this Scheduler (see
SchedulerTask.getSchedulerClass(), and sets new Sources for them. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_REPARSE_DELAY
public static final Class<? extends Scheduler> CURSOR_SENSITIVE_TASK_SCHEDULER
Scheduler reschedules all tasks when:
public static final Class<? extends Scheduler> EDITOR_SENSITIVE_TASK_SCHEDULER
Scheduler reschedules all tasks when:
public static final Class<? extends Scheduler> SELECTED_NODES_SENSITIVE_TASK_SCHEDULER
Scheduler reschedules all tasks when
nodes selected in editor are changed.
| Constructor Detail |
|---|
public Scheduler()
| Method Detail |
|---|
protected final void schedule(SchedulerEvent event)
this Scheduler (see
SchedulerTask.getSchedulerClass().
protected final void schedule(Source source,
SchedulerEvent event)
this Scheduler (see
SchedulerTask.getSchedulerClass(), and sets new Sources for them.
sources - A collection of Sources.protected abstract SchedulerEvent createSchedulerEvent(SourceModificationEvent event)
|
org.netbeans.modules.parsing.api/1 1.55.0 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||