Book a Demo

Author Topic: Script to update classes ("Synchronize with Code  (Read 3676 times)

mmo

  • EA User
  • **
  • Posts: 85
  • Karma: +0/-0
    • View Profile
Script to update classes ("Synchronize with Code
« on: August 16, 2014, 01:41:55 am »
I am trying to write me a script that triggers all classes in a package (plus subpackages) to synchronize with their respective code (i.e. the operation that happens, when I select a class and press F7 (= "Synchronize with Code...) - in my case with the corresponding Java classes).

I have the code to iterate through packages and to locate elements of type "Class", but now I am stuck mostly due to lack of corresponding documentation:

How can I trigger a "Synchronize with Code" on such an element?

Michael

« Last Edit: August 16, 2014, 01:42:16 am by mmo »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Script to update classes ("Synchronize with Co
« Reply #1 on: August 16, 2014, 03:18:16 am »
See GenerateClass  in the ProjectInterface.

q.