Class EventDispatchJob
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
org.eclipse.ease.debugging.dispatcher.EventDispatchJob
- All Implemented Interfaces:
Comparable
,org.eclipse.core.runtime.IAdaptable
,IScriptRegistry
- Direct Known Subclasses:
PythonEventDispatchJob
public class EventDispatchJob extends org.eclipse.core.runtime.jobs.Job implements IScriptRegistry
-
Field Summary
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
-
Constructor Summary
Constructors Constructor Description EventDispatchJob(IEventProcessor host, IEventProcessor debugger)
Creates a new dispatcher. -
Method Summary
Modifier and Type Method Description void
addEvent(IDebugEvent event)
org.eclipse.core.resources.IResource
getResource(Script script)
Get theIResource
identified by thisScript
.Script
getScript(org.eclipse.core.resources.IResource resource)
Return theScript
identified by thisIResource
.void
put(Script script)
Add a newScript
to the registry and store its mapping.Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, create, create, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
-
Constructor Details
-
EventDispatchJob
Creates a new dispatcher. The dispatcher automatically attaches to the host and the debugger. Further the job get automatically scheduled.- Parameters:
host
- debug modeldebugger
- debugger implementation
-
-
Method Details
-
addEvent
-
getScript
Description copied from interface:IScriptRegistry
Return theScript
identified by thisIResource
.- Specified by:
getScript
in interfaceIScriptRegistry
- Parameters:
resource
-IResource
to getScript
for.- Returns:
Script
identified byIResource
ornull
if no mapping found.
-
getResource
Description copied from interface:IScriptRegistry
Get theIResource
identified by thisScript
.- Specified by:
getResource
in interfaceIScriptRegistry
- Parameters:
script
-Script
to getIResource
for.- Returns:
IResource
identified byScript
ornull
if no mapping found.
-
put
Description copied from interface:IScriptRegistry
Add a newScript
to the registry and store its mapping.- Specified by:
put
in interfaceIScriptRegistry
- Parameters:
script
- Script to be stored in registry.
-