Task #2747

Mis à jour par Sebastien Jacquot il y a plus de 5 ans

When computing or re-computing a complex result from an Editor, the job is ran as a cancelable background task.
The task is visible in the Eclipse progress view and in the Eclipse status bar progression area at bottom right corner.
Some console logs also alert the user a computing has been started (and ended).
Some messages may appears in the TXM status bar (bottom left corner) but it has not been generalized at this time (should be done in 0.8.1 or 0.8.2).
The result and editor as flagged as "Dirty", an asterisk is shown in the tree node label and the editor tab title, but only in not-auto-computing mode.
A blocker and an alert have also been added in the Editor to avoid parallel computing (see #2682).

Current state summary:

* if a user changes some parameters of an editor and launch a new compute, it does nothing until the current computing has ended (except showing the console alert).
* the end of a computing is shown to the user by 3 steps:
** the console generally display "Terminated"
** the Eclipse status bar progression area at bottom right corner disappears
** the Editor result area is refreshed (e.g. the Table is filled/update or the Chart is drawn/updated)

The feedback for the computing process itself seems insufficient, especially in case of complex result long computing.

h3. Possible and mixable solutions

* disable some areas of the Editor when computing
** disable the toolbar parameter widgets/compute button
** disable the result area/chart area
* hide some areas of the Editor when computing
** hide the result area so the user directly shows the result became inconsistent
* transform some widgets
** hide the result area and show a loading animated icon
** transform the icons of the tree node label and editor tab title to loading animated icons

NOTES:

* TXMResult store is computing state
* TXMResult protects itself from parallel computing
* hiding the result area will also fix some bugs leading to columns auto-resizement that can be slow and for some result is done each column, one by one

Retour