This site uses cookies.
Some of these cookies are essential to the operation of the site,
while others help to improve your experience by providing insights into how the site is being used.
For more information, please see the ProZ.com privacy policy.
Closing the "Statistics" window in a groovy script when reloading a project
Thread poster: Rossano Rossi
Rossano Rossi Local time: 08:54 English to Italian + ...
Aug 8, 2018
In ΩT 4.1.4. Is it possible to use in a groovy script the "closeWindowByEvent(java.awt.Window window)" (or any other code) to close the "Statistics" windows when reloading a project? How can I get the correct handle to this window?
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Susan Welsh United States Local time: 02:54 Russian to English + ...
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Didier Briel France Local time: 08:54 English to French + ...
You can also use the development mailing list
Aug 8, 2018
Rossano Rossi wrote: In ΩT 4.1.4. Is it possible to use in a groovy script the "closeWindowByEvent(java.awt.Window window)" (or any other code) to close the "Statistics" windows when reloading a project? How can I get the correct handle to this window?
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Rossano Rossi Local time: 08:54 English to Italian + ...
TOPIC STARTER
SOLUTION
Aug 10, 2018
Should anyone need it, this is a working solution (from "OmegaT User Support" yahoo group):
In "omegat.prefs"* change ˂project_files_show_on_load˃true˂/project_files_show_on_load\˃ to ˂project_files_show_on_load˃false˂/project_files_show_on_load\˃
[Credit to Briac Pilpré and Dimitry Prihodko]
BTW
project files windows are not visible inside a [Groovy] script. [Credit to Briac Pilpré]
Should anyone need it, this is a working solution (from "OmegaT User Support" yahoo group):
In "omegat.prefs"* change ˂project_files_show_on_load˃true˂/project_files_show_on_load\˃ to ˂project_files_show_on_load˃false˂/project_files_show_on_load\˃
[Credit to Briac Pilpré and Dimitry Prihodko]
BTW
project files windows are not visible inside a [Groovy] script. [Credit to Briac Pilpré]
HTH
*(in my computers C:\Users\name\AppData\Roaming\OmegaT\omegat.prefs [Windows] and \home\name\.omegat\omegat.prefs [Linux])
WARNING: edit the file, do not cut&paste this, since I replaced the closing and opening brackets of the tags ˂˃ with U+02C2 and U+02C3 for proper display [in PROZ HTML]
Translate faster & easier, using a sophisticated CAT tool built by a translator / developer.
Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools.
Download and start using CafeTran Espresso -- for free
Manage your TMs and Terms ... and boost your translation business
Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.