Feature #2758
RCP: X.X, TXM corpus file association
Statut: | New | Début: | 31/01/2020 | |
---|---|---|---|---|
Priorité: | High | Echéance: | ||
Assigné à: | Serge Heiden | % réalisé: | 0% |
|
Catégorie: | UI / Ergonomy | Temps passé: | - | |
Version cible: | TXM 0.8.4 |
Description
Currently, .txm files are not associated with TXM software at the OS level.
a) using a running TXM: So it is not possible to directly load a corpus into TXM after download (as is the typical scenario in browser based download - eg on Windows).
b) launching a new TXM: It is not possible also to launch TXM by a double-clicking on a .txm file.
Solution¶
See, for each OS, how Java implements interprocess communications for two common services:
- launch an application based on a file type and let the application process a specific file
- let a running application process a specific file based on its type
Then,
1) Associate .txm files with TXM application at OS level and manage file load in a running TXM or by new launch, to automatically load a binary corpus in TXM (calls command LoadBinaryCorpus)
Use Eclipse "--launcher.openFile thefilepath" parameter and add a SWT.OpenDocument Listener to the SWT Display.
2) Be able to detect if TXM is already running -> the implementataion may depends on the OS. See if the Eclipse binary launcher can help
Historique
#1 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Version cible changé de TXM 0.8.2 à TXM 0.8.4
#2 Mis à jour par Serge Heiden il y a plus de 2 ans
- Description mis à jour (diff)
- Priorité changé de Normal à High
#3 Mis à jour par Matthieu Decorde il y a plus de 2 ans
- Description mis à jour (diff)
#4 Mis à jour par Serge Heiden il y a plus de 2 ans
- Description mis à jour (diff)