Book a Demo

Author Topic: java: import technology  (Read 2900 times)

ch

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
java: import technology
« on: June 26, 2008, 09:03:09 pm »
Hey,
I want to create an ea-project in java. Unfortunately it's difficult to find good documentation. So I can't find how to import a technology.
There is the Method "ImportTechnology(String)" in class Repository, but if I use this and I start the created project after it there is no entry in resources->MDG Technologies. But when I try to import the same  technology in ea, it appears a message that this technology already exist (will overwrite...).
Also all classes, which use a stereotype (in profile of imported technology), has no tagged values. These appaer after "synch tagged values and constraints". Is there a way to realize this synchronization in the java-program?

Thanks!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: java: import technology
« Reply #1 on: June 26, 2008, 10:01:02 pm »
See the note at the end of the documentation for ImportTechnology. For some reason this method is not marked as "depreciated" (perhaps because it is still useful for earlier technologies).

For a while there was another method that handled new technologies, but it seems to have disappeared. This makes me think that the only way to 'open' a technology at run time is to move the technology file to an appropriate directory and start a new EA instance.

Not the best situation if you ask me, but them's the breaks. At least it works...

David
No, you can't have it!