Book a Demo

Author Topic: Synchronize Class from Java Code via Aut.Interf  (Read 7070 times)

colo

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Synchronize Class from Java Code via Aut.Interf
« on: September 27, 2006, 02:09:45 pm »
Hello!
I've heard about a hiden procedure to generate code by AI.
it's Package.GenerateSourceCode but i d'ont know if there are something like this procedure to synchronize the existing code.
Please if you find out , let me know!!

thanks...

thomaskilian

  • Guest
Re: Synchronize Class from Java Code via Aut.Inter
« Reply #1 on: September 27, 2006, 02:14:12 pm »
Someone mentioned it here on the board recently. But as long as there is no documentation/statement from Sparx I'd avoid touching it.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Synchronize Class from Java Code via Aut.Inter
« Reply #2 on: September 27, 2006, 02:45:06 pm »
However, in build 798 there is a function to do transformation from the API, so perhaps this too is on the way. Perhaps we need to raise it as a formal feature request...
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Synchronize Class from Java Code via Aut.Inter
« Reply #3 on: September 27, 2006, 03:08:58 pm »
Actually, 798 added what you want.

Look at http://sparxsystems.com.au/EAUserGuide/index.html?project_2.htm right down the bottom of the page.
« Last Edit: September 27, 2006, 03:20:23 pm by simonm »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Synchronize Class from Java Code via Aut.Inter
« Reply #4 on: September 28, 2006, 04:21:14 am »
Whoops, my bad.

I'd actually looked at that very page in HTML help. But since I was looking for the transform function mentioned in the release notes my eye went right past the generate function.

That said, I'm absolutely delighted that the generate function made it in. I've been waiting for this...

Thanks once again Sparx!

David
No, you can't have it!

colo

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Synchronize Class from Java Code via Aut.Inter
« Reply #5 on: September 28, 2006, 05:59:48 am »
Thanks a lot!!!
I will try it..
;D

colo

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Synchronize Class from Java Code via Aut.Inter
« Reply #6 on: October 03, 2006, 08:10:02 am »
Y try this and it work very fine!.
I just had a problem, when I use SynchronizeClass in the Ea app it show me a message asking me if i really want to syncronize that class!!
How can I skip this question? There are no explanations about the parameter in the help:

ExtraOptions: String, Allows for extra options to be given to the command.  Currently unused.

Does anyone know abaut this?


«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Synchronize Class from Java Code via Aut.Inter
« Reply #7 on: October 03, 2006, 08:18:29 am »
No idea. It sounds like either the functionality or the documentation (or both) did not quite get closed off when this feature was added.

I (strongly) suggest you submit this to Sparx as a bug. You can easily reach the appropriate page from the EA main menu via Help | On-line Resources | Bug Report Page. This is the kind of thing that needs to be repaired ASAP. Fortunately it is probably also the kind of thing that is easy to repair.

David
No, you can't have it!

colo

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Synchronize Class from Java Code via Aut.Inter
« Reply #8 on: October 03, 2006, 08:55:06 am »
Thanks a lot David!!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Synchronize Class from Java Code via Aut.Inter
« Reply #9 on: October 03, 2006, 03:03:41 pm »
The prompt is according to an option at Tools | Options | Source Code Engineering | Prompt when synchronizing (reversing).

The ExtraOptions parameter is future proofing so we don't need to change the interface if a new option needs to be added.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Synchronize Class from Java Code via Aut.Inter
« Reply #10 on: October 03, 2006, 03:32:42 pm »
Thanks Simon,

I figured the spare parameter was leaving room for extension.

As for the prompt, given that we have an automation interface perhaps there should be some way to turn it off in the method call. I understand why you might want to use the option setting when running an add-in, since this makes for a consistent human interface. However, when running a stand-alone automation program the dialog can be disturbing, and the alternative of turning off human confirmation is a bit daunting.

David
No, you can't have it!