Skip to main content



      Home
Home » Eclipse Projects » Sirius » "diagram" variable is gone(aql diagram variable DSemanticDiagram error)
"diagram" variable is gone [message #1802108] Fri, 01 February 2019 04:33 Go to next message
Eclipse UserFriend
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 09:51 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: "diagram" variable is gone [message #1802145 is a reply to message #1802122] Fri, 01 February 2019 15:09 Go to previous messageGo to next message
Eclipse UserFriend
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 101 times)
  • Attachment: x2.jpg
    (Size: 67.70KB, Downloaded 79 times)
Re: "diagram" variable is gone [message #1802221 is a reply to message #1802145] Mon, 04 February 2019 09:27 Go to previous message
Eclipse UserFriend
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
Previous Topic:Table column derivation and if else
Next Topic:How to select all layers at once
Goto Forum:
  


Current Time: Wed Jul 09 22:17:06 EDT 2025

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

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

Back to the top