Book a Demo

Author Topic: how put my classes in a package?  (Read 4052 times)

jercoli

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
how put my classes in a package?
« on: September 02, 2005, 06:46:30 am »
Hi, I've build my classes in a diagram; then i've create a new diagram of packgages; and then... assign the correct classes into the correct packages: how make these: not work with copy-paste, neither with drag and drop.

My Model is:
- Logical View (i´ve see the packages)
 - Logical Model  (see my classes)
 - Data Model ...

Thanks in advance.



thomaskilian

  • Guest
Re: how put my classes in a package?
« Reply #1 on: September 05, 2005, 12:56:55 am »
Quote
... assign the correct classes into the correct packages...

??? what do you mean with that?

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: how put my classes in a package?
« Reply #2 on: September 05, 2005, 03:11:28 pm »
Are you trying to drag drop the classes in the project tree or on the diagram?
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

cschleif

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: how put my classes in a package?
« Reply #3 on: October 10, 2005, 09:08:17 am »
i have the same problem.
i've reversed engineered my java source and then I clicked on
a package and then on "New Element" and added a class.
after this I try to "generate code", this works fine, but when I looked at the source I saw that the package isn't set.
is there an option to link the class to my package? did I forgot something?

thomaskilian

  • Guest
Re: how put my classes in a package?
« Reply #4 on: October 10, 2005, 01:13:03 pm »
A mystic thread. What do you mean by "I saw that the package isn't set"? Can you give an example?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: how put my classes in a package?
« Reply #5 on: October 10, 2005, 05:34:52 pm »
Quote
Hi, I've build my classes in a diagram; then i've create a new diagram of packgages; and then... assign the correct classes into the correct packages: how make these: not work with copy-paste, neither with drag and drop.

My Model is:
- Logical View (i´ve see the packages)
  - Logical Model  (see my classes)
  - Data Model ...

Thanks in advance.
Open the project view, you should be able to drag classes between packages in there.

Quote
i have the same problem.
i've reversed engineered my java source and then I clicked on
a package and then on "New Element" and added a class.
after this I try to "generate code", this works fine, but when I looked at the source I saw that the package isn't set.
is there an option to link the class to my package? did I forgot something?
Make sure that your new class is in a package that isn't set as a namespace root.  Packages are generated for all packages that aren't namespace roots.  (Search the help or this forum for "namespace root" for more information)

cschleif

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: how put my classes in a package?
« Reply #6 on: October 11, 2005, 01:04:39 am »
okay i solved it by saying "Create Package per Directory" this
works also.

but anyway thanks  :)