Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Integrating Xtext and Sirius(When adding a node, how to set the type of element represented by this node)
Integrating Xtext and Sirius [message #1861576] Thu, 19 October 2023 14:04 Go to next message
peppa nwpu is currently offline peppa nwpuFriend
Messages: 15
Registered: October 2023
Junior Member
I defined a language using The type of element represented by the node. Since the definition of the element type involves cross-reference, Sirius does not generate the corresponding attribute. What should I do?

Below are some related pictures of my project.

index.php/fa/43653/0/

index.php/fa/43655/0/

index.php/fa/43656/0/

In response to this problem, I checked the information and found that it may be necessary to define an attribute view. I want to be able to set the data type of this "Variable" when adding such a "Variable" node. This type can be a basic data type, or it can be an existing data type. For the defined structure type, I tried setting the attribute view, but I found that I was not familiar with the API of the self variable. Where should I find the API documentation about self and input variables? Currently, I am only in the documentation of sirius. I found some information in the property view section, but the information is not comprehensive for me.

index.php/fa/43657/0/

index.php/fa/43658/0/

  • Attachment: 1.png
    (Size: 70.45KB, Downloaded 86 times)
  • Attachment: 2.png
    (Size: 132.89KB, Downloaded 83 times)
  • Attachment: 3.png
    (Size: 32.27KB, Downloaded 98 times)
  • Attachment: 4.png
    (Size: 34.94KB, Downloaded 84 times)
  • Attachment: 5.png
    (Size: 35.46KB, Downloaded 89 times)

[Updated on: Tue, 31 October 2023 06:19]

Report message to a moderator

Re: Integrating Xtext and Sirius [message #1861658 is a reply to message #1861576] Wed, 25 October 2023 14:32 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 705
Registered: July 2009
Senior Member
Hi.
I don't see anything Xtext-specific in your screenshot. Wrong title?

It's impossible to answer without known your metamodel and how you defined the "Port connection" edge description element (I assume it's the one concerned here).


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Integrating Xtext and Sirius [message #1861702 is a reply to message #1861576] Sun, 29 October 2023 07:19 Go to previous messageGo to next message
peppa nwpu is currently offline peppa nwpuFriend
Messages: 15
Registered: October 2023
Junior Member
No Message Body

[Updated on: Tue, 31 October 2023 06:22]

Report message to a moderator

Re: Integrating Xtext and Sirius [message #1861722 is a reply to message #1861576] Tue, 31 October 2023 06:21 Go to previous message
peppa nwpu is currently offline peppa nwpuFriend
Messages: 15
Registered: October 2023
Junior Member
I modified my problem description, can you help me, thank you very much!
Previous Topic:Code Generation Problems
Next Topic:Code of Services.java in PropertiesViewTutorial
Goto Forum:
  


Current Time: Sat Oct 05 22:22:01 GMT 2024

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

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

Back to the top