Skip to main content



      Home
Home » Eclipse Projects » Sirius » Subcontainer without semantic element
Subcontainer without semantic element [message #1414098] Sat, 30 August 2014 04:29 Go to next message
Eclipse UserFriend
Hi all,

is it possible to have a container (just for grouping sub elements) without
a dedicated metamodel element?

Example use case: a class contains fields and operations. When using a
VerticalStack layout it is desired to have containers for these child
elements instead of having only a class container and direct sub nodes for
fields and operations.

My intermediate solution for this is using sub containers which have [self/]
as semantic element assigned. This works fine except that validation markers
appear on both the class container as well as the child containers.

Thus my question is how this could be improved.

TIA,
Axel
Re: Subcontainer without semantic element [message #1414746 is a reply to message #1414098] Mon, 01 September 2014 03:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi Axel,

indeed, Node & Container Mappings must be associated to a semantic
element. So the solution you used (using a sub-container with [self/] as
Semantic Candidate Expression) is the best one I can imagine.

Regards,
Alex


Le 30/08/2014 10:29, Axel Guckelsberger a écrit :
> Hi all,
>
> is it possible to have a container (just for grouping sub elements) without
> a dedicated metamodel element?
>
> Example use case: a class contains fields and operations. When using a
> VerticalStack layout it is desired to have containers for these child
> elements instead of having only a class container and direct sub nodes for
> fields and operations.
>
> My intermediate solution for this is using sub containers which have [self/]
> as semantic element assigned. This works fine except that validation markers
> appear on both the class container as well as the child containers.
>
> Thus my question is how this could be improved.
>
> TIA,
> Axel
>


--
Alex Lagarde - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius/
Re: Subcontainer without semantic element [message #1415381 is a reply to message #1414746] Tue, 02 September 2014 12:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi Alex,

thanks for your advice.

Do you see any possibility to customise the validation marker's behaviour?

Regards,
Axel


Alex Lagarde wrote:

> Hi Axel,
>
> indeed, Node & Container Mappings must be associated to a semantic
> element. So the solution you used (using a sub-container with [self/] as
> Semantic Candidate Expression) is the best one I can imagine.
>
> Regards,
> Alex
>
>
> Le 30/08/2014 10:29, Axel Guckelsberger a écrit :
>> Hi all,
>>
>> is it possible to have a container (just for grouping sub elements)
>> without a dedicated metamodel element?
>>
>> Example use case: a class contains fields and operations. When using a
>> VerticalStack layout it is desired to have containers for these child
>> elements instead of having only a class container and direct sub nodes
>> for fields and operations.
>>
>> My intermediate solution for this is using sub containers which have
>> [self/] as semantic element assigned. This works fine except that
>> validation markers appear on both the class container as well as the
>> child containers.
>>
>> Thus my question is how this could be improved.
>>
>> TIA,
>> Axel
>>
>
>
Re: Subcontainer without semantic element [message #1416078 is a reply to message #1415381] Thu, 04 September 2014 05:22 Go to previous message
Eclipse UserFriend
Hi Axel,

not sur I understand your question :
- If you want to customize the validation behavior, you can register you
own EValidator (standard emf validation) or add Validation Rules [1] in
your VSM
- If you want to customize the decorator
(SiriusValidationDecoratorProvider) I'm not sure this is possible. It is
contribued by the org.eclipse.sirius.diagram.ui plugin through the
org.eclipse.gmf.runtime.diagram.ui.decoratorProviders extension point.

Regards,
Alex

[1]
https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#validation

Le 02/09/2014 18:42, Axel Guckelsberger a écrit :
> Hi Alex,
>
> thanks for your advice.
>
> Do you see any possibility to customise the validation marker's behaviour?
>
> Regards,
> Axel
>
>
> Alex Lagarde wrote:
>
>> Hi Axel,
>>
>> indeed, Node & Container Mappings must be associated to a semantic
>> element. So the solution you used (using a sub-container with [self/] as
>> Semantic Candidate Expression) is the best one I can imagine.
>>
>> Regards,
>> Alex
>>
>>
>> Le 30/08/2014 10:29, Axel Guckelsberger a écrit :
>>> Hi all,
>>>
>>> is it possible to have a container (just for grouping sub elements)
>>> without a dedicated metamodel element?
>>>
>>> Example use case: a class contains fields and operations. When using a
>>> VerticalStack layout it is desired to have containers for these child
>>> elements instead of having only a class container and direct sub nodes
>>> for fields and operations.
>>>
>>> My intermediate solution for this is using sub containers which have
>>> [self/] as semantic element assigned. This works fine except that
>>> validation markers appear on both the class container as well as the
>>> child containers.
>>>
>>> Thus my question is how this could be improved.
>>>
>>> TIA,
>>> Axel
>>>
>>
>>
>


--
Alex Lagarde - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius/
Previous Topic:Migrating RCP application and extensions from GMF project
Next Topic:Validation in edition tables
Goto Forum:
  


Current Time: Sat Jul 05 04:21:47 EDT 2025

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

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

Back to the top