Diagram extension question [message #1776542] |
Fri, 17 November 2017 13:59 |
Eduardo Silva Messages: 12 Registered: September 2014 |
Junior Member |
|
|
Hello there,
I'm developing a GEMOC solution for a DSL. The GEMOC part is already done and it works pretty good, but I have some questions about Sirius diagram extension mechanism.
The background:
I have a completely functional language, let's call it language A, with Sirius diagrams working pretty good. I needed to extend the metamodel elements to include some properties I will use for GEMOC (the GEMOC part is not important, just giving the context). GEMOC generates the extended language model, classes and adapters, so I have a second language (extended A) also completely functional in terms of metamodeling.
The fact is that I want to define an diagram extension for this extended A, that will (of course) extends the existing diagram definition of language A. In this first moment, I just want to change the color of element borders if a boolean property (hasChanged) is true.
I created, therefore, a new viewpoints specification file (.odesign) with a new viewpoint I called ExtendedA. This viewpoint contains a single element: a diagram extension. That extends an ActivityDiagram present in language A.
This extension contains a single layer, I named it Debug. Debug has a single element: a style customization. The predicate expression is [self.hasChanded/], since it will trigger when the boolean property hasChanged is true.
The style customization also have a single element: a property customization (by selection). Follows a print with the definition of this property customization.
The issue is that the "value selection" field appears empty, and it is always empty. I tried a lot of things but nothing worked. I created a new UserDefinedColor DebugColor and want to use it as the value of borderColor, but the value never appears here.
It is worth highlighting that not every element have this property (hasChanged), just a few. However, Sirius should ignore everyone that doesnt match it, right?
What am I missing?
@edit
I'm using Sirius 5.0.2
-
Attachment: sirius1.png
(Size: 18.39KB, Downloaded 660 times) -
Attachment: sirius2.png
(Size: 6.38KB, Downloaded 563 times)
[Updated on: Fri, 17 November 2017 14:01] Report message to a moderator
|
|
|
|
|
|
Re: Diagram extension question [message #1776553 is a reply to message #1776548] |
Fri, 17 November 2017 16:12 |
|
Ok ok that was too simple.
I tested with a sample and it seems that we have a bug. When the "apply on all" checkbox is checked...the value selection list is empty/blank. Can you try to uncheck the checkbox, then select your color and then check it again? With my sample I end up with the wanted result (despite the extra steps) and the serialisation of the odesign file is OK.
Can you create a bugzilla on this issue please?
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02327 seconds