Book a Demo

Author Topic: Simple way to retarget language to procude code in  (Read 4918 times)

neutronic

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Simple way to retarget language to procude code in
« on: August 14, 2002, 02:47:31 pm »
Howdy,

I was wondering if there is an easy way to globally (on every single object in my package) retarget the output language?

I am a fairly new user of this tool and I did not set the output langauge to C# on all my classes, so when I go to generate code it outputs Java coode.

Id rather not go through every single object by hand to retarget it to C#.

Furthermore there is 40% change that I will be doing the same project over in Java in about a year, so I would find the ability to quickly retarget a package qutie valuable.

Any input/help. I assume I am just being dumb here.

sparks

  • EA Administrator
  • EA User
  • *****
  • Posts: 691
  • Karma: +4/-2
    • View Profile
Re: Simple way to retarget language to procude cod
« Reply #1 on: August 15, 2002, 06:35:20 am »
Hello,

EA already contains a function that will do what you have asked for.  Right click on a package in the tree and select 'Code Engineering'->'Reset Options for this Package...'.  On this screen you have the ability to select the source language and the new target language as well as a couple of other options.  Hope this helps.

Paul Mathers

neutronic

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Simple way to retarget language to procude cod
« Reply #2 on: August 15, 2002, 08:11:59 am »
Ahh. Thank you. I knew I was just being stupid.
That is great :)

thnx

GSeremetidis

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Simple way to retarget language to procude cod
« Reply #3 on: August 15, 2002, 07:04:57 pm »
Related to this...

When I select View->Options->Java Specifications, I can specifiy a colleciton class for 1..many associations. Unfortunately when I then generate code for an individual class, the collection class isn't set, unless I set code generation properties for the class itself. Am I missing something?

Thanks