Feature #2758
Mis à jour par Serge Heiden il y a plus de 2 ans
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.
h3. 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
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.
h3. 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