|
Re: Subcontainer without semantic element [message #1414746 is a reply to message #1414098] |
Mon, 01 September 2014 07:53 |
|
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 #1416078 is a reply to message #1415381] |
Thu, 04 September 2014 09:22 |
|
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/
|
|
|
Powered by
FUDForum. Page generated in 0.02593 seconds