Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Any developments regarding Profile/Stereotype styling?
Any developments regarding Profile/Stereotype styling? [message #1251953] Thu, 20 February 2014 19:39 Go to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
The Styling documentation includes this section:

Quote:
Profile/Stereotype support

It is not possible to restrict a selector to an applied stereotype. There is currently no way to specify that a style should only apply to classes on which the SysML::Blocks::Block stereotype is applied.


But this documentation seems a bit old, are there any developments on this? Thanks.
Re: Any developments regarding Profile/Stereotype styling? [message #1252458 is a reply to message #1251953] Fri, 21 February 2014 08:35 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi Luis,

The documentation embedded directly within Eclipse (F1) is up to date, and describes how you can do that (Kepler SR2/Luna)

[appliedStereotypes~="Block"]{
	bold:true;
}

/* Equivalent: qualified name */
[appliedStereotypes~="SysML::Blocks::Block"]{
	bold:true;
}


Regards,
Camille


Camille Letavernier
Re: Any developments regarding Profile/Stereotype styling? [message #1253549 is a reply to message #1252458] Sat, 22 February 2014 11:38 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Hi Camille, thank you for your answer.

I am using Papyrus 0.10.2, which seems to be latest version available. The local help still contains the same paragraph I posted initially. I thus tried a style sheet directive as you suggest:

[appliedStereotypes~="profile::Thing"]
{
	bold:true;
	shadow:true;
	gradient: red vertical;
	elementIcon:true;
	qualifiedNameDepth:full;
}

And it has no effect on classes with the "Thing" stereotype applied on.

Thank you.
Re: Any developments regarding Profile/Stereotype styling? [message #1255283 is a reply to message #1253549] Mon, 24 February 2014 09:29 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi Luis,

The default name for profiles in Papyrus is "Profile", with a capital "P". If you didn't rename it, the correct stylesheet would then be:

[appliedStereotypes~="Profile::Thing"]
{
	bold:true;
	shadow:true;
	gradient: red vertical;
	elementIcon:true;
	qualifiedNameDepth:full;
}


Regards,
Camille


Camille Letavernier
Re: Any developments regarding Profile/Stereotype styling? [message #1257786 is a reply to message #1255283] Wed, 26 February 2014 19:58 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Hi Camille,

In this context "profile" is the name of the profile package. I tried it as you suggest, with a capital "P", but it has no effect.

I also tried without the package name:

[appliedStereotypes~="Thing"]
{
	gradient: red vertical;
	bold:true;
	shadow:true;
	elementIcon:true;
	qualifiedNameDepth:full;
}


But it still has no effect.

Apart from adding the css file to the Style tab, is there something else I need to do to apply the style?

Thank you.
Re: Any developments regarding Profile/Stereotype styling? [message #1258335 is a reply to message #1251953] Thu, 27 February 2014 09:24 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi,

Just remembered that we have an installation/update bug in Kepler, regarding UML/CSS integration, using the Discovery site.

I will fix that tomorrow with the Kepler SR2 release.

Until then, you can install the following Features using the nightly update site:

- Papyrus CSS Feature
- Papyrus UML CSS Feature

You need to use this update site:

http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/kepler

And uncheck "Group items by category"

This should solve the issue

Regards,
Camille


Camille Letavernier
Re: Any developments regarding Profile/Stereotype styling? [message #1259806 is a reply to message #1258335] Fri, 28 February 2014 20:34 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Hi Camille, none of those features are available from that update address. Could you please confirm? Thank you.
Re: Any developments regarding Profile/Stereotype styling? [message #1262084 is a reply to message #1259806] Mon, 03 March 2014 08:44 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi Luis,

These are not top-level features, so you need to uncheck "Group items by category"

Kepler SR2 has been released on last Friday (02/28), so you can also follow the instructions here:

http://www.eclipse.org/forums/index.php/t/662007/

Regards,
Camille


Camille Letavernier
Re: Any developments regarding Profile/Stereotype styling? [message #1263847 is a reply to message #1262084] Tue, 04 March 2014 20:42 Go to previous message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Thank you very much Camille, with those two new features now it works.
Previous Topic:Ecore to UML/MARTE mapping
Next Topic:Papyrus & EMF
Goto Forum:
  


Current Time: Fri Apr 19 20:51:49 GMT 2024

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

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

Back to the top