Closing the "Statistics" window in a groovy script when reloading a project
Thread poster: Rossano Rossi

Rossano Rossi  Identity Verified
Local time: 10:50
English to Italian
+ ...
Aug 8

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  Identity Verified
United States
Local time: 04:50
Member (2008)
Russian to English
+ ...
post to Yahoo group Aug 8

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  Identity Verified
France
Local time: 10:50
Member (2007)
English to French
+ ...
You can also use the development mailing list Aug 8

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  Identity Verified
Local time: 10:50
English to Italian
+ ...
TOPIC STARTER
SOLUTION Aug 10

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]


 


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

Advanced search






TM-Town
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.

More info »
PerfectIt consistency checker
Faster Checking, Greater Accuracy

PerfectIt helps deliver error-free documents. It improves consistency, ensures quality and helps to enforce style guides. It’s a powerful tool for pro users, and comes with the assurance of a 30-day money back guarantee.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search