Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: AlexY on September 07, 2009, 05:15:52 am

Title: Hide all compartments in a class
Post by: AlexY on September 07, 2009, 05:15:52 am
As I was told that EA does not have an option to hide all compartments of a class except a class name and I have just submitted a feature request to Sparx to add such a feature.
If anyone else needs such an option, please comment in support.

Thanks,
Alex.
Title: Re: Hide all compartments in a class
Post by: AlexY on September 07, 2009, 05:16:35 am
Original discussion: http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1252084438
Title: Re: Hide all compartments in a class
Post by: Thelonius on September 07, 2009, 08:51:53 am
I support this. It would be useful in what I'm doing.
Title: Re: Hide all compartments in a class
Post by: RoyC on September 07, 2009, 09:45:37 am
Also see:

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1246032170/3#3
Title: Re: Hide all compartments in a class
Post by: smendonc on September 07, 2009, 10:05:32 am
If you have the option of applying a stereotype to a class, you can create a stereotype based on class and assign the shape script below to it.  Setting a class to this stereotype will then draw it with no compartments and only the name.

Nothing beats a native ability that doesn't need the stereotype though.

shape main
{
      h_align = "center";
      v_align = "center";

      rectangle (0,0,100,100);
      println("#name#");

}

Stan.
Title: Re: Hide all compartments in a class
Post by: Paolo F Cantoni on September 07, 2009, 11:25:06 am
Gets my vote...

Paolo
Title: Re: Hide all compartments in a class
Post by: Makulik on September 07, 2009, 06:24:23 pm
My vote also ...
Title: Re: Hide all compartments in a class
Post by: AlexY on September 07, 2009, 10:56:03 pm
Dear smendonc,

thank you for description of a possible solution.. but this solution is a workaround for a feature which should be a part of the tool as a standard option.

Alex.
Title: Re: Hide all compartments in a class
Post by: «Midnight» on September 07, 2009, 11:47:34 pm
Absolutely!

The workaround is poor at best, as it requires customization to provide a 'standard' UML notation.

Not only that, but many other features of the EA drawing paradigm become unavailable when shape scripts are used.

And it requires adding a stereotype to an element where the intent is only to change the notation. That is, the stereotype does not have semantic value. IMHO this is just asking for trouble somewhere down the line.

David