[gme-users] general preferences on connections/atoms

Aditya Agrawal Aditya at isis.vanderbilt.edu
Mon Feb 16 12:04:06 CST 2004


Peter,
As far as I know you cannot create decorators for connections.

Sandeep,
I can think of a hack that might solve your problem. You can create a
new attribute in the connection class to store the value you want
displayed. Then you can write an addon that will change the value of
this attribute based on the attribute of the connected objects. 

Thanks,
Adi

PS: If you guys don't like hacks please don't attack me :)

------------------------------------------
Aditya Agrawal 
mailto:aditya.agrawal at vanderbilt.edu
http://aditya.isis.vanderbilt.edu/
Institute For Software Integrated Systems (ISIS) www.isis.vanderbilt.edu

Vanderbilt University 
2015 Terrace Place 
Nashville, TN 37203
615 322 3164


-----Original Message-----
From: Peter Volgyesi [mailto:peter.volgyesi at vanderbilt.edu] 
Sent: Monday, February 16, 2004 11:40 AM
To: gme-users
Subject: Re: [gme-users] general preferences on connections/atoms

The format of the label string is quite restricted. You can only use the

  attributes of the connection (%attrname%), the kind (%kind%) and the 
role (%role%) of the connection. That's it.
If you want to show something special (dynamic content) on an object, 
you should create a decorator (a short intro can be found in the user 
manual, and a sample decorator skeleton is a good starting point int the

SDK directory).
--
peter


> Peter,
> 
> I know that one can display an attribute of a connection on the line 
> itself by adding the "labelFormatStr = %attrName%" in the general 
> preferences of the connection class in the meta-model. Is there a way
I 
> can show an attribute of the src (or dest) object of a connection, 
> something like ("labelFormatStr = %src.attr%")? Also similar to 
> connections can I show an attribute of an atom on the icon of the
atom?
> 
>  
> 
> Thanks
> 
> Sandeep
> 
>  
> 
> --
> 
> Sandeep Neema
> 
> Research Scientist,
> 
> Institute of Software Integrated Systems, Vanderbilt University
> 
> Phone: 615-343-9996
> 
> Email: sandeep.k.neema at vanderbilt.edu 
> <mailto:sandeep.k.neema at vanderbilt.edu>
> 
>  
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users

_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


More information about the gme-users mailing list