Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Show only the class name

1 view
Skip to first unread message

Franos

unread,
Oct 6, 2004, 12:18:11 PM10/6/04
to

Hello,

Is there an option to display in one place the package name and in an other place the class name inside a class diagram ?

ex: imagine you have the FQN com.cc.vv.yy.MyClassName
Could it be possible to have MyclassName and com.cc.vv.yy in
two separate places ?

Best Regards.

ElenaA

unread,
Oct 8, 2004, 8:10:13 AM10/8/04
to
Try changing original class name definition in view.config to the following:

view.macro.Class=
...
\ name = getProperty("alias");
\ if(name == null,
\ if( (hasPropertyValue("$language","java") ||
hasPropertyValue("$language","design") ) ,
\ if (getContainingPackage()->getProperty("$fullName") != "",
\ packageLabel =
addToCompartment(label(getContainingPackage()->getProperty("$fullName")),"Na
mes");
\ packageLabel->setAlignment("Center");
\ packageLabel->setAbbreviation("left",true,true)
\ );
\ name = getProperty("$name"),
\ name = getProperty("$fullName")
\ );
\ name = name->replace("_", " ", "inside")
\ );
\ nameLabel = addToCompartment(label(name),"Names");
\ nameLabel->setElementName("nameLabel");
...


"Franos" <francois....@gemplus.com> wrote in message
news:41641ac3$1...@newsgroups.borland.com...

0 new messages