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






Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »
Trados Studio 2022 Freelance
The leading translation software used by over 270,000 translators.

Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop and cloud solution, empowering you to work in the most efficient and cost-effective way.

More info »