Author Topic: Question about setting up a new Java project  (Read 3233 times)

markb

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Question about setting up a new Java project
« on: October 28, 2003, 03:08:05 pm »
I am trying to setup a new Java/J2EE project in EA but am having some difficulty.  I would like to organize my project folders in the "Project View" by modules of the system I am creating, not by view type.  I am starting with Class diagrams.

However, EA does not seem to let you create project folders to be used just for organization purposes.  It always makes you create "Package" folders instead.  The thing about "Package" folders is that if/when you generate Java source code from the class diagrams the "Package" folders become part of the Java package name in the source code itself.

For example: If you load the "EAExample" project and go to Messenger->Model Views->Design Model->Logical Model->J2EE Classes->Servlets, THEN generate source code on "Servlets", THEN look at the .java source files you will see package names like:

package Model Views.Design Model.Logical Model.J2EE Classes.Servlets;

This is not what I want.  What I want to be able to do is organize the project the way I want and specify the Java package names separately.  Is there a way to do this, or am I restricted to setting up my project from a Java package name perspective?  I hope I am missing something...

Thanks In Advance  :)

MarkB

Tjerk

  • EA User
  • **
  • Posts: 231
  • Karma: +1/-0
    • View Profile
Re: Question about setting up a new Java project
« Reply #1 on: October 29, 2003, 03:53:30 am »
Hi Mark,

There is an option called Set Namespace Root, this option ensures that not your projectroot, but the selected package will be the first package. So Packages should be used for both organising your project in EA and for Java packages.

This option can be found by rightclicking on a package, select Package Control... and Set as Namespace root (build 3.60.650).

Greetz,
Tjerk

markb

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Question about setting up a new Java project
« Reply #2 on: October 29, 2003, 07:31:23 am »
Hey Tjerk, thanks once again.  I will check this out here shortly.  Right clicking on the package again... hmm... I am starting to notice a pattern here <g>.

Thanks, Mark

mmrack

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Question about setting up a new Java project
« Reply #3 on: November 28, 2003, 04:13:04 pm »
Hi,
Look this


It´s a package structure.
And it


a source generated.

Is it?