Skip to main content



      Home
Home » Eclipse Projects » Sirius » support individual styles based on domain classes for children inside the same ordered list inside a
support individual styles based on domain classes for children inside the same ordered list inside a [message #1698838] Thu, 18 June 2015 05:48 Go to next message
Eclipse UserFriend
Maxime Porhel wrote on Wed, 10 June 2015 18:22
a List container mapping to represent IfStatement and FunctionCalls (a
single mapping with an abstract domain class to control the order of
displayed elements: with two mappings they will be sorted by mapping and
then by semantic candidates expression result) (source)


ok, so I would create a single mapping for the abstract domain class, which is "Statement".

I understand that I can define a style for that abstract domain class.

Can I also define individual styles for the concrete domain classes, i.e. IfStatement and FunctionCall, and at the same time have them displayed in the correct order?

thank you for an answer,
Moritz
Re: support individual styles based on domain classes for children inside the same ordered list insi [message #1699279 is a reply to message #1698838] Tue, 23 June 2015 04:29 Go to previous message
Eclipse UserFriend
Le 18/06/2015 11:48, Moritz Eysholdt a écrit :
> Maxime Porhel wrote on Wed, 10 June 2015 18:22
>> a List container mapping to represent IfStatement and FunctionCalls (a
>> single mapping with an abstract domain class to control the order of
>> displayed elements: with two mappings they will be sorted by mapping
>> and then by semantic candidates expression result) (source)
>
>
> ok, so I would create a single mapping for the abstract domain class,
> which is "Statement".
> I understand that I can define a style for that abstract domain class.
>
> Can I also define individual styles for the concrete domain classes,
> i.e. IfStatement and FunctionCall, and at the same time have them
> displayed in the correct order?
Hello

Yes, there are different ways you can customize the style which depends
on the concrete class
- you can add a conditional style [1] per concrete class on your
abstract class mapping with a test on the type of the instance in the
Predicate Expression
- if the concrete class styles are nearly the same, you can also add a
style customization [2] to customize the abstract class mapping style

>
> thank you for an answer,
> Moritz

regards
Laurent

[1]
http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.sirius.doc%2Fdoc%2Fspecifier%2Fdiagrams%2FDiagrams.html&cp=57_2_1_3&anchor=styling
[2]
http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.sirius.doc%2Fdoc%2Fspecifier%2Fdiagrams%2FDiagrams.html&cp=57_2_1_8&anchor=customization
Previous Topic:Keybinding conflict Sirius & XText
Next Topic:Get model file location of current editing diagram
Goto Forum:
  


Current Time: Sun May 11 23:27:15 EDT 2025

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

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

Back to the top