|
|
|
|
|
|
Re: Stereotype shapes and icons with Papyrus 0.10 [message #1237670 is a reply to message #1237461] |
Thu, 30 January 2014 09:44 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi Luis,
For this error:
java.net.MalformedURLException: no protocol: /home/lads/Desktop/Icons/Man.svg
at java.net.URL.<init>(URL.java:585)
at java.net.URL.<init>(URL.java:482)
at java.net.URL.<init>(URL.java:431)
try using the following path instead:
file:/home/lads/Desktop/Icons/Man.svg
There are three different ways for displaying the Stereotype icons in Papyrus, but only two of them are supported on Kepler (For the last one, you will need to update to the Luna M4/M5 developer build)
In Kepler, select the stereotyped element, then go to the Appearance tab of the properties view. In "Stereotype display", select either Icon or Shape. Then, select the stereotype in the "Applied stereotypes" field, and click on "Display"
The "Shape Display" in Kepler is not really efficient. The new (incoming) mechanisms in Luna are much more powerful. They require a little bit of setup, but once properly configured, they are much easier to manipulate.
Regards,
Camille
Camille Letavernier
|
|
|
|
Re: Stereotype shapes and icons with Papyrus 0.10 [message #1237871 is a reply to message #1233420] |
Thu, 30 January 2014 20:40 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi Luis,
Quote:Icon - has no effect on the stereotyped element, but there are no error messages or exceptions.
This option only works if you have defined an Icon for your stereotype. In your case, you have defined a Shape. You need to define both, if you want to be able to switch from one display to the other.
Quote:How can I set Shape as the default stereotype display, instead of Text?
You can't.
Quote:How do I get the edges linked to the stereotyped element back?
You can't.
That's where we get to the 3) option I was mentionning earlier: Papyrus 1.0.0/Luna provides a new framework for manipulating symbols, which is much more powerful. It is also fully integrated with the CSS/Stylesheets framework, which makes it possible to display the symbol for all stereotyped elements. However, it is still under development, so I can't tell much more than what's already described in the documentation (Which should already be enough)
Regards,
Camille
Camille Letavernier
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04415 seconds