Task #2097
Mis à jour par Sebastien Jacquot il y a plus de 8 ans
Improve the delete TXM result pop up confirmation dialog and function.
* add "and close the result tab/editor?" to the message question
* close the result editor
location: /org.txm.rcp/src/main/java/org/txm/rcpapplication/commands/base/DeleteObject.java
see closeEditorOfSelection() based on CustomizableEditor(), need to modify that to use TXMEditorPart.getResult() instanceof objectToDelete but also objectToDelete.getParent()
Current pop up message is: "Deleting [Object name/toString], continue?"
Proposals: Proposal for Corpus, Subcorpus and Partition:
EN: "Are sure you want to delete the object Object.getName()?
(All results computed from this object will be deleted and linked opened tabs will be closed.)"
FR: "Êtes-vous sûr de vouloir supprimer le résultat Object.getName()?
(Tous les résultats calculés à partir de cet objet seront détruits et les onglets liés seront fermés.)
We may need to mark difference between objects: Corpus, Sub-corpus and Partition and other computation results.
* add "and close the result tab/editor?" to the message question
* close the result editor
location: /org.txm.rcp/src/main/java/org/txm/rcpapplication/commands/base/DeleteObject.java
see closeEditorOfSelection() based on CustomizableEditor(), need to modify that to use TXMEditorPart.getResult() instanceof objectToDelete but also objectToDelete.getParent()
Current pop up message is: "Deleting [Object name/toString], continue?"
Proposals: Proposal for Corpus, Subcorpus and Partition:
EN: "Are sure you want to delete the object Object.getName()?
(All results computed from this object will be deleted and linked opened tabs will be closed.)"
FR: "Êtes-vous sûr de vouloir supprimer le résultat Object.getName()?
(Tous les résultats calculés à partir de cet objet seront détruits et les onglets liés seront fermés.)
We may need to mark difference between objects: Corpus, Sub-corpus and Partition and other computation results.