Task #2508

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

Added by Sebastien Jacquot about 1 month ago.

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

0%

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

Description

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

Also available in: Atom PDF