Task #2508

Improve and clean org.txm.rcp.utils.JobHandler

Added by Sebastien Jacquot over 4 years ago. Updated over 2 years ago.

Status:New Start date:02/25/2019
Priority:Normal Due date:
Assignee:- % Done:


Category:Development Spent time: -
Target version:TXM 0.8.4


Improve, clean, remove useless complex code in org.txm.rcp.utils.JobHandler:
- do not implement IProgressMonitor
- do not store an IProgressMonitor
- remove all the wrapping method
- remove runInit() method?
- do not store the Thread if Job.this.getThread().stop() is sufficient to kill the process
- keep Semaphore only if it's really needed. NOTE: it's useless for the thread stopping
- the thread stopping only work for the current thread. For example the TXMResult.compute() process can be cancelled in throwing a ThreadDeath exception but the UI process (JobHandler.syncExe()) can not be interrupted at this moment. For example it's not possible to interrupt the load of a "big" SVG file or the sort of a huge UI table. Try to improve the system so the process can be also interrupted by the user


#1 Updated by Matthieu Decorde over 2 years ago

  • Target version changed from TXM 0.8.2 to TXM 0.8.4

Also available in: Atom PDF