RCP: X.X, TXM corpus file association
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,
- 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)
-
Windows :
FTYPE SMCFile="C:\some_path\SMCProgram.exe" -some_option %1 %*ASSOC .smc=SMCFile
-
Use Eclipse “—launcher.openFile thefilepath” parameter and add a SWT.OpenDocument Listener to the SWT Display.
- Be able to detect if TXM is already running -> the implementataion may depends on the OS. See if the Eclipse binary launcher can help
- See :
- Message Service (JMS) peut être une solution pour ça :
- - ou encore Java JGroups : http://www.jgroups.org
- See :
(from redmine: issue id 2758, created on 2020/01/31 by Matthieu Decorde)
(from SLH mail 2024-06-04)
Edited by Matthieu Decorde