Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Node Creation Set (Sirius+Xtext)
Node Creation Set (Sirius+Xtext) [message #1753385] Sun, 05 February 2017 14:19 Go to next message
Tobias Nodurft is currently offline Tobias NodurftFriend
Messages: 2
Registered: February 2017
Junior Member
Hello everyone,
i have problems with the creation of a node and the set-function. I have a project with sirius and Xtext(DSL). The diagramm represents instances of objecttypes. I like to create a Node-Creation wich sets the name and the objecttype automatically. But the problem is, that the name can be set, but not the objecttype. If i try to set the objecttype like this:
index.php/fa/28348/0/
i can't create a new node.
When i create a new node without the set type function, it creates a new node. I can select the type from a list like this:
index.php/fa/28347/0/
Do you have any ideas, what the problem might be?

Thanks,
Tobias
P.S. Sorry for my bad english
  • Attachment: 1.png
    (Size: 26.61KB, Downloaded 198 times)
  • Attachment: 2.PNG
    (Size: 20.98KB, Downloaded 186 times)
Re: Node Creation Set (Sirius+Xtext) [message #1753635 is a reply to message #1753385] Wed, 08 February 2017 10:38 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi,

The expression in the first screenshot (for the set Type operation) seems to be a simple String. This does not allow Sirius to retrieve the corresponding EObject in the semantic model. You have to write an expression [1] to browse your semantic model to retrieve the corresponding EObject.

Regards,

Laurent

[1] https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Diagram for selected elements
Next Topic:Registering my ecore metamodel for Sirius Viewpoints Dynamic Development
Goto Forum:
  


Current Time: Fri Apr 19 21:18:28 GMT 2024

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

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

Back to the top