Book a Demo

Author Topic: finalizers being generated  (Read 3794 times)

mps

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
finalizers being generated
« on: February 09, 2006, 02:22:14 pm »
Whenever I create a class in EA and generate Java code from it, finalizer code is always generated (though it doesn't appear in the diagram). Can I suppress the automatic generation of finalizers?
« Last Edit: February 09, 2006, 02:25:45 pm by mps »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: finalizers being generated
« Reply #1 on: February 09, 2006, 02:27:56 pm »
Try unchecking the following.

Tools | Options | Source Code Engineering | Object Lifetimes | Generate Destructor.

mps

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: finalizers being generated
« Reply #2 on: February 09, 2006, 02:47:44 pm »
Thanks for the quick answer. That solved it. Now can you suggest a way to have it stop asking me if it is OK to synchronize a class?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: finalizers being generated
« Reply #3 on: February 09, 2006, 04:10:21 pm »
I can.  :)

Tools | Options | Source Code Engineering | Prompt when Synchronizing (reversing)

mps

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: finalizers being generated
« Reply #4 on: February 09, 2006, 05:07:28 pm »
Wow, you're good! How about this one? I'm using MDG link and when I create enums, they aren't exported to Eclipse (Other classes are). How can I make that happen?

Thanks

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: finalizers being generated
« Reply #5 on: February 09, 2006, 07:48:37 pm »
I've answered both of those questions probably even more times than Thomas etc. have answered "How do I specify the ordering of my attributes?"  (Though nowhere near as many times as it's been answered by our support staff.)

I'm not certain, but suspect that this is a bug in the Eclipse link.  There's something similar in the Visual Studio link.

You can just generate the enum manually (Ctrl+G) and it's added into Eclipse.  The same works in reverse using import source files or import source directory.

thomaskilian

  • Guest
Re: finalizers being generated
« Reply #6 on: February 10, 2006, 12:55:34 am »
Quote
I've answered both of those questions probably even more times than Thomas etc. have answered "How do I specify the ordering of my attributes?"  (Though nowhere near as many times as it's been answered by our support staff.)...

Have you been working to improve the F.A.Q. then? ;D

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: finalizers being generated
« Reply #7 on: February 10, 2006, 08:37:13 am »
Thomas,

I thought you and Simon were the FAQ section!

If not then we'll all have to modify our world view...

David
No, you can't have it!

thomaskilian

  • Guest
Re: finalizers being generated
« Reply #8 on: February 12, 2006, 06:48:21 am »
Whether Sparx would mind if I publish my bank account for donations? ;)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: finalizers being generated
« Reply #9 on: February 12, 2006, 01:29:11 pm »
Quote
Have you been working to improve the F.A.Q. then? ;D


:-/ I've tried...

On the plus side, the attributes/operations sorting issue shouldn't need an FAQ entry soon.