Book a Demo

Author Topic: Hide all compartments in a class  (Read 9091 times)

AlexY

  • EA User
  • **
  • Posts: 60
  • Karma: +3/-0
    • View Profile
Hide all compartments in a class
« 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.

AlexY

  • EA User
  • **
  • Posts: 60
  • Karma: +3/-0
    • View Profile
Re: Hide all compartments in a class
« Reply #1 on: September 07, 2009, 05:16:35 am »

Thelonius

  • EA User
  • **
  • Posts: 274
  • Karma: +6/-0
  • I think. Therefore I get paid.
    • View Profile
Re: Hide all compartments in a class
« Reply #2 on: September 07, 2009, 08:51:53 am »
I support this. It would be useful in what I'm doing.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Best Regards, Roy

smendonc

  • EA User
  • **
  • Posts: 148
  • Karma: +5/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Hide all compartments in a class
« Reply #4 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.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Hide all compartments in a class
« Reply #5 on: September 07, 2009, 11:25:06 am »
Gets my vote...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Hide all compartments in a class
« Reply #6 on: September 07, 2009, 06:24:23 pm »
My vote also ...

AlexY

  • EA User
  • **
  • Posts: 60
  • Karma: +3/-0
    • View Profile
Re: Hide all compartments in a class
« Reply #7 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.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Hide all compartments in a class
« Reply #8 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
No, you can't have it!