Eclipse RCP: check if a job has finished
问题 I want to check if a Job has finished. Currently I do this: if ( traceJob.getState() != Job.WAITING && traceJob.getState() != Job.RUNNING){ But I think there should be a better way to check. Anyone has any good idea ? 回答1: You can use Job.addJobChangeListener to add a listener to a Job. The done method of the listener is called when the job finishes. There is a JobChangeAdapter class with default implementations of all the IJobChangeListener methods so that you don't need to implement all of