Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » "diagram" variable is gone(aql diagram variable DSemanticDiagram error)
"diagram" variable is gone [message #1802108] Fri, 01 February 2019 09:33 Go to next message
Mars Keez is currently offline Mars KeezFriend
Messages: 16
Registered: January 2015
Junior Member
Hi All

Have a diagram open and using the Sirius interpreter, typing:
"aql:diagram"

In the same kind of diagrams in different models, but the same metamodel and same viewpoints I get different results:

a) "Result of type diagram::DSemanticDiagram"

b) "1 error detected" tool tip says: "Result of type null"

Thus my AQL expressions in the viewpoint design model don't work either.
Thought diagram variable is always accessible? Alternatives?

Regards
make
Re: "diagram" variable is gone [message #1802122 is a reply to message #1802108] Fri, 01 February 2019 14:51 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

The diagram variable is accessible for mappings but I am not sure it is always meant to be loaded for the interpreter. Anyway, can you present the mappings and expressions where you want to use the diagram variable?

Regards,
Steve


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: "diagram" variable is gone [message #1802145 is a reply to message #1802122] Fri, 01 February 2019 20:09 Go to previous messageGo to next message
Mars Keez is currently offline Mars KeezFriend
Messages: 16
Registered: January 2015
Junior Member
Hello Steve

Thx for the response, so far. Please find enclosed two testing examples:

x1) the first one sets the name of the double clicked dia element to the name of its diagram. works fine.

x2) the second should do the same (right?), but only gets to erase the old name without being able to set it to the new value, s.t. the name of the element remains empty.

Regards
make
  • Attachment: x1.jpg
    (Size: 62.01KB, Downloaded 60 times)
  • Attachment: x2.jpg
    (Size: 67.70KB, Downloaded 63 times)
Re: "diagram" variable is gone [message #1802221 is a reply to message #1802145] Mon, 04 February 2019 14:27 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

Indeed there is no variable diagram in the context of a Double Click Tool. You will need to keep the first solution. There are some tools where this variable is initialized even if it is not listed in the variable (right under the tool) but "diagram" is not a variable that is universally available. It is a nice idea though.

Regards,
Steve


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Table column derivation and if else
Next Topic:How to select all layers at once
Goto Forum:
  


Current Time: Tue Apr 23 14:20:30 GMT 2024

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

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

Back to the top