Change SWT Legacy Automation mode in code

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
TheNoobie
Posts: 2
Joined: Tue Dec 04, 2018 9:52 pm

Change SWT Legacy Automation mode in code

Post by TheNoobie » Tue Dec 04, 2018 9:59 pm

Hey guys!

Does anyone of you know how to change the setting "Use SWT legacy automation mode" in code?
I have to change it in runtime, since I would have to rework my whole repository if I can't.

Thanks!
Noob

User avatar
RobinHood42
Posts: 242
Joined: Fri Jan 09, 2015 3:24 pm

Re: Change SWT Legacy Automation mode in code

Post by RobinHood42 » Wed Dec 05, 2018 10:58 am

Hey,

Just use the following line of code:
Configuration.Current["plugins.java.swtlegacymode"] = true;
Cheers,
Robin :mrgreen:

TheNoobie
Posts: 2
Joined: Tue Dec 04, 2018 9:52 pm

Re: Change SWT Legacy Automation mode in code

Post by TheNoobie » Wed Dec 05, 2018 3:01 pm

Thanks Robin!
Works like a charm! :D