Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Changing icon in stereotype according to several attributes
Changing icon in stereotype according to several attributes [message #1552960] Thu, 08 January 2015 12:17 Go to next message
Eclipse UserFriend
Dear all,
I would like to change the icon of a port in a diagram according to the
value of some tagged attributes of a stereotype in a profile.
I have followed the procedure described in
https://www.eclipse.org/papyrus/usersTutorials/resources/PapyrusUserGuideSeries_AboutUMLProfile_v1.0.0_d20120606.pdf
Nevertheless,it works for a single attribute, but I don't know how to do
it for several ones. i.e, I would like something like:

attribute1=VALUE1 and attribute2=VALUE2

Is it possible?

Kind regards,

Víctor
Re: Changing icon in stereotype according to several attributes [message #1553115 is a reply to message #1552960] Thu, 08 January 2015 14:04 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 245
Registered: July 2009
Location: Paris Saclay, France
Senior Member
No it is not possible. The scope of the expression is only base on one property.

See code line 389 of the class org.eclipse.papyrus.uml.tools.utils.ImageUtil.

To support several attributes, you can contribute if you want Wink, because I think that this fucntionality is not planned for the next version.
Patrick
Re: Changing icon in stereotype according to several attributes [message #1553188 is a reply to message #1553115] Thu, 08 January 2015 14:58 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 926
Registered: February 2011
Senior Member
Hi,

Quote:
To support several attributes, you can contribute if you want Wink, because I think that this fucntionality is not planned for the next version.


We are currently discussing the possibility to manage the Element Icon via a graphical property, compatible with the CSS Framework, for Papyrus 1.1. If it is possible to define the Element Icon from a graphical property, then the CSS component would allow you to select an icon based on a more complex expression (e.g. several stereotype attributes)

But it is not actually "planed". It may be implemented for Mars, but I won't guarantee that

Camille


Camille Letavernier
Re: Changing icon in stereotype according to several attributes [message #1554547 is a reply to message #1553188] Fri, 09 January 2015 08:57 Go to previous message
Eclipse UserFriend
Thanks for your quick answers.
As Patrick suggest it would be nice contributing. I'll try to contribute
to that issue, adding basic support for logic operations should no be
very complex. Just having NOT and AND operators support would be
probably enough.

Víctor

El 08/01/2015 a las 15:58, Camille Letavernier escribió:
> Hi,
>
> Quote:
>> To support several attributes, you can contribute if you want Wink,
>> because I think that this fucntionality is not planned for the next
>> version.
>
>
> We are currently discussing the possibility to manage the Element Icon
> via a graphical property, compatible with the CSS Framework, for Papyrus
> 1.1. If it is possible to define the Element Icon from a graphical
> property, then the CSS component would allow you to select an icon based
> on a more complex expression (e.g. several stereotype attributes)
>
> But it is not actually "planed". It may be implemented for Mars, but I
> won't guarantee that
>
> Camille
Previous Topic:Register Listener on Editor Changes
Next Topic:Sorting of requirement table according to element order?
Goto Forum:
  


Current Time: Thu Jul 09 07:40:17 GMT 2020

Powered by FUDForum. Page generated in 0.02352 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top