Bug #2742

RCP: 0.8.0, TXMEditor parameter toolbar is broken when CQP corpus is not ready

Ajouté par Matthieu Decorde il y a plus de 5 ans. Mis à jour il y a plus d'un an.

Statut:Feedback Début:24/01/2020
Priorité:Normal Echéance:
Assigné à:- % réalisé:

80%

Catégorie:UI Temps passé: -
Version cible:TXM 0.8.4

Description

TXMEditor parameters toolbar is broken when a CQP corpus is not ready -> CQP exception are raised.

E.g. calling Cooccurrence on a not computed Sub-corpus throws a CQP exception when the Cooccurrence editor is opened and tries to load the available corpus properties.

Solution 1

When opening a TXMEditor always pre-compute the parent before. Add parent.compute(false) in
  • a) TXMEditor.openEditor()
  • b) TXMEditor.this.createPartControl

a) can manage the parent.compute in a job
b) always works but might cause freezes at any moment. -> maybe we can use a busyWhile job to correctly freezes the interface

---> Use the b) solution and validate the freeze is ok

Solution 2

  • protect all TXMResult getters methods with a this.compute(false)

Validation tests

WIP SJ:

  • purpose here is to test on large corporas that contain not computed partitions or corpus that calling a command or reopening a result that are descendant to the not computed objects works as expected

Demandes liées

lié à Bug #2682: Editor results computing executed with not computed paren... Feedback 29/11/2019
lié à Bug #2745: RCP: 0.8.0, Dialog boxes of Sub-corpus and Partition crea... Feedback 24/01/2020

Révisions associées

Révision 2558
Ajouté par Sebastien Jacquot il y a plus de 5 ans

Fixes: Deleting a result node doesn't close its result children editors (refs #2679)
Progresses on: TXMEditor parameter toolbar is broken when CQP corpus is not ready (refs #2742)
Progresses on: Commands executed on not loaded Partition may lead to wrong results (refs #2682)

Révision 2559
Ajouté par Sebastien Jacquot il y a plus de 5 ans

Progresses on: TXMEditor parameter toolbar is broken when CQP corpus is not ready (refs #2742)
Progresses on: Commands executed on not loaded Partition may lead to wrong results (refs #2682)

Révision 2565
Ajouté par Sebastien Jacquot il y a plus de 5 ans

Progresses on: TXMEditor parameter toolbar is broken when CQP corpus is not ready (refs #2742)
Progresses on: Commands executed on not loaded Partition may lead to wrong results (refs #2682)

Révision 2566
Ajouté par Sebastien Jacquot il y a plus de 5 ans

Progresses on: TXMEditor parameter toolbar is broken when CQP corpus is not ready (refs #2742)
Progresses on: Commands executed on not loaded Partition may lead to wrong results (refs #2682)

Révision 2579
Ajouté par Sebastien Jacquot il y a plus de 5 ans

Progresses on: TXMEditor parameter toolbar is broken when CQP corpus is not ready (refs #2742)
Progresses on: Commands executed on not loaded Partition may lead to wrong results (refs #2682)

Historique

#1 Mis à jour par Matthieu Decorde il y a plus de 5 ans

  • Description mis à jour (diff)

#2 Mis à jour par Matthieu Decorde il y a plus de 5 ans

  • Description mis à jour (diff)

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

  • Description mis à jour (diff)
  • Statut changé de New à Feedback
  • % réalisé changé de 0 à 80

Solution b) has been implemented. A new modal dialog box class (/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/AdvancedProgressMonitorDialog.java) has been developed.
This class runs the parents branch computing in TXMEditor.createPartControl(). The progress bar dialog opens (with a delay of 1 second) and blocks the UI until the process is done so the Editor is not shown before it's fully ready to be used.

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

  • Description mis à jour (diff)

Need new issue and wiki specs for solution 2.

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

  • Description mis à jour (diff)

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

Since when TXMEditor.createPartControl() is called the editor is already opened, it leads to some Eclipse Workbench errors (shown in Error Log view) and forces us to close back the editor if the process is user canceled.
So the pre-computing of the parents branch has been moved to TXMEditor.openEditor().

#7 Mis à jour par Sebastien Jacquot il y a plus d'un an

  • Version cible changé de TXM 0.8.1 à TXM 0.8.4

Formats disponibles : Atom PDF