Book a Demo

Author Topic: merging classes not generated by EA  (Read 3459 times)

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
merging classes not generated by EA
« on: October 03, 2004, 12:25:15 am »
HI!

    We have models done within EA that we coded outside, and we would like to megthem back in EA after code changes. I tryed it but EA only adds a new class with same name instead of recognising it is the same class and merging it.

any ideas?
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: merging classes not generated by EA
« Reply #1 on: October 03, 2004, 04:19:08 pm »
My guess is that your problem is one of the following.
  • The class in EA has a different filename to the class you are reverse engineering from.
  • The class has changed names.
  • The class no longer has the same nested relationship that it did have.

Any of those reasons will mean that EA will not match the two classes ans synchronise them.

Simon

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: merging classes not generated by EA
« Reply #2 on: October 03, 2004, 10:58:13 pm »
1) I think I dont totayl understand the 1rd reason.

2) I tryed creating an ampty class diagram, them created an ampty class.
after that I imported the class from java source-code
and what i got is 2 classes with the same name....

it is realy important for me - do you have some tutorial about it?
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: merging classes not generated by EA
« Reply #3 on: October 03, 2004, 11:46:32 pm »
When you create a class in EA it has no filename.

When wanting to synchronise a class from a file EA needs to file you are importing from and the file path set for that class to be the same.  Because they aren't EA says that the classes aren't the same and doesn't touch the other one.

You have two options that I can think of.

1. Set the filename of the class you have created so that it is the same file as what you are about to import from.

2. Don't create a class of that name first.  EA will create it anyway.

Simon

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: merging classes not generated by EA
« Reply #4 on: October 04, 2004, 12:12:16 am »
the problem is that I allready have al modeling done in EA and all coding outside.
connecting the class in EA to java class file through "file" tab didnt work and I sow no other way to connect it.
I wouldnt like to delete classes every time I want to do model updates after changin code, I just want it to merge the classes someway...
Recursion definition:
If you don’t understand the definition read "Recursion definition".