Closing the "Statistics" window in a groovy script when reloading a project
Thread poster: Rossano Rossi
Rossano Rossi
Rossano Rossi  Identity Verified
Local time: 06:21
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?


 
Susan Welsh
Susan Welsh  Identity Verified
United States
Local time: 00:21
Russian to English
+ ...
post to Yahoo group Aug 8, 2018

It would be best for you to post this question to the Yahoo group, which has much more traffic from developers than this forum. https://groups.yahoo.com/neo/groups/OmegaT/conversations/messages (I don't know the answer to your question!)

Rossano Rossi
 
Didier Briel
Didier Briel  Identity Verified
France
Local time: 06:21
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?


For such technical questions, you can also use the OmegaT development mailing list:
https://sourceforge.net/projects/omegat/lists/omegat-development

Didier


 
Rossano Rossi
Rossano Rossi  Identity Verified
Local time: 06:21
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é]

HTH... See more
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]


[Edited at 2018-08-10 08:59 GMT]
Collapse


 


There is no moderator assigned specifically to this forum.
To report site rules violations or get help, please contact site staff »


Closing the "Statistics" window in a groovy script when reloading a project






CafeTran Espresso
You've never met a CAT tool this clever!

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

Buy now! »
Anycount & Translation Office 3000
Translation Office 3000

Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.

More info »