Book a Demo

Author Topic: EAExample Question  (Read 5528 times)

Functional

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
EAExample Question
« on: April 06, 2003, 03:05:26 pm »
Just downloaded:

When I go to LM01-03: Order Domain
Look at Diagram Orders
There are no attributes or properties showing, although they appear in the Workspace.
If I select Order | Properties | Class Detail | Attributes -> they appear in the dialog (but not the diagram).
If I select Shopping Cart | Properties | Class Detail | Attributes -> I get an error message "The name you entered has a space embedded and may cause code generation problems. Continue?"
(I entered no name). On Yes or No, Attribute show in the dialog (but still not on diagram).

LM01-02: Inventory Domain works as expected.

Hints anyone?

Alex

Tjerk

  • EA User
  • **
  • Posts: 231
  • Karma: +1/-0
    • View Profile
Re: EAExample Question
« Reply #1 on: April 07, 2003, 03:51:54 am »
Hi Alex,

One has the possibility to hide certain items from a diagram, try right-clicking on the background of the diagram, select diagram properties and inspect all the possible options in the dialog that pops up.

If this doesn't help, please reply and I will look for more details.

Greetings,
Tjerk

Functional

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: EAExample Question
« Reply #2 on: April 07, 2003, 08:55:10 am »
Thanks Tjerk,

The class members were not set "visible". I learned something.

However, I still get the error message.

Alex
« Last Edit: April 07, 2003, 08:56:55 am by Functional »

Fintan

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: EAExample Question
« Reply #3 on: April 10, 2003, 02:31:11 am »
Hi Functional,

The error is there for a reason - Most languages do not allow you to create a class that has spaces in the name.  E.g. class named "class One" would be illegal in most languages and should be called "classOne".

If you use EA to automatically generate code for you a class which has a space in the name could cause an 'illegal' class name in the code that is generated.

This is the reason for the error that you see - one of the classes in the diagram you are looking at has a class whose name has a space in it.

I am unaware of any option in EA which will turn this message off.

Regards,

Fintan

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: EAExample Question
« Reply #4 on: April 11, 2003, 07:00:54 am »
"View - Options - Objects - No warning for spaces in class names" turns off the warning.

Mikkel