iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.editor.language.model
Class DdsModelLpexAdapter.ParseJobScheduler

java.lang.Object
  extended byorg.eclipse.core.runtime.jobs.JobChangeAdapter
      extended bycom.ibm.etools.iseries.editor.language.model.DdsModelLpexAdapter.ParseJobScheduler
All Implemented Interfaces:
IJobChangeListener
Enclosing class:
DdsModelLpexAdapter

public class DdsModelLpexAdapter.ParseJobScheduler
extends JobChangeAdapter

This class schedules jobs to parse the model from the editor's contents in the background. The singleton pattern is used.


Constructor Summary
DdsModelLpexAdapter.ParseJobScheduler()
           
 
Method Summary
 void createPendingJob(com.ibm.etools.iseries.editor.language.model.DdsModelLpexAdapter.DdsJob newJob)
          If there is a pending job - merge with it otherwise create a pending job.
 void done(IJobChangeEvent event)
           
 void jobHasFinished(Job finishedJob)
          If the scheduled job has ended then schedule another one because something changed since the scheduled job started running.
 void schedule(com.ibm.etools.iseries.editor.language.model.DdsModelLpexAdapter.DdsJob newJob)
          Schedule a job If a job is already scheduled but not running merge with it.
 void scheduleParse(int rangeBottom, int rangeTop)
          Schedule a job to parse the contents of the Lpex editor.
 void scheduleResequence()
          Schedule a job to synch the sequence numbers in model with the contents of the Lpex editor.
 
Methods inherited from class org.eclipse.core.runtime.jobs.JobChangeAdapter
aboutToRun, awake, running, scheduled, sleeping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DdsModelLpexAdapter.ParseJobScheduler

public DdsModelLpexAdapter.ParseJobScheduler()
Method Detail

scheduleParse

public void scheduleParse(int rangeBottom,
                          int rangeTop)
Schedule a job to parse the contents of the Lpex editor. Maintains a range of elements to fix up sequence numbers.


scheduleResequence

public void scheduleResequence()
Schedule a job to synch the sequence numbers in model with the contents of the Lpex editor.


schedule

public void schedule(com.ibm.etools.iseries.editor.language.model.DdsModelLpexAdapter.DdsJob newJob)
Schedule a job If a job is already scheduled but not running merge with it. If a job is already running, wait for it to end and then schedule a new one. If no job is scheduled, create a new one


createPendingJob

public void createPendingJob(com.ibm.etools.iseries.editor.language.model.DdsModelLpexAdapter.DdsJob newJob)
If there is a pending job - merge with it otherwise create a pending job.

Returns:

jobHasFinished

public void jobHasFinished(Job finishedJob)
If the scheduled job has ended then schedule another one because something changed since the scheduled job started running.

Parameters:
finishedJob -

done

public void done(IJobChangeEvent event)

iSeries Remote Systems
v6.0.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.