Book a Demo

Author Topic: new class comes preset with methods and attributes  (Read 3176 times)

hoemmele

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
new class comes preset with methods and attributes
« on: October 08, 2008, 03:30:59 am »
Hi,
when I add a new class, using toolbox->class and click into a class diagram, the new class is not empty but comes preset with methods and attributes is if it was a copy of an existing class (in my EA project).
The class from which the methods and attributes are copied to my new class is always the same one (but randomly picked in the first place).

When I use Project->Add element->class I get a new, empty class as expected.

What am I doing wrong, or what is special about the toolbox here ?

Thanks, Lars

floerio

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: new class comes preset with methods and attrib
« Reply #1 on: October 08, 2008, 04:14:12 am »
Hi Lars,

the elements in the toolboxes can be configured (via MDG). With this one can define initial values, tagged values etc.

Could it be that you use an element from one of the "special" toolboxes?

Regards,
Oliver

hoemmele

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: new class comes preset with methods and attrib
« Reply #2 on: October 08, 2008, 04:45:19 am »
Hi Oliver,
I use 'class' from the UML toolbox, I think this is standard or default for class diagrams. I'm new to EA, and I have not yet (knowingly) defined any properties for toolboxes or toolbox elements.

I just reverse-engineered a couple of C++ header files, arranged my class diagrams and need to create more C++ classes now.

What's remarkable is that EA seems to create a copy of an existing class (only with a new name 'class1' ) instead of an empty one.

regards, Lars

Takeshi K

  • EA User
  • **
  • Posts: 620
  • Karma: +41/-1
    • View Profile
    • Sparx Systems Japan
Re: new class comes preset with methods and attrib
« Reply #3 on: October 08, 2008, 07:49:30 am »
Hi Lars,

The Template package feature may be active.

Select Settings | Template Packages from the Main menu and select '<none>' in the Browse Project dialog.

the Template package feature will be disabled.


Hope this helps.

--
t-kouno
--
t-kouno

hoemmele

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: new class comes preset with methods and attrib
« Reply #4 on: October 08, 2008, 08:01:41 pm »
Hi t-kouno,

yes, thanks.

Cheers, Lars