Skip to main content



      Home
Home » Eclipse Projects » Sirius » Integrate Xtext editor in Sirius Properties
Integrate Xtext editor in Sirius Properties [message #1822004] Tue, 25 February 2020 10:20 Go to next message
Eclipse UserFriend
Hello,

I managed to integrate the Xtext editor in Sirius Properties View by using a custom widget and following the examples from https://github.com/ObeoNetwork/Xtext-Sirius-integration and https://github.com/ObeoNetwork/Flow-Designer .
Having the editor in the properties view is the only requirement, I don't need to open an embedded Xtext editor or other facilities.

How can I limit the content of the editor to show only the content of the node that is selected in the representation (in this case, the blue circle from the representation.png picture attached)?
In the textual representation that would be the correspondent of the line 11 (file.png picture attached), with the mention that is in fact a hierarchy of emf objects.

Thank you!

Kind Regards,

Alexandra

  • Attachment: representation.PNG
    (Size: 69.40KB, Downloaded 94 times)
  • Attachment: file.PNG
    (Size: 12.54KB, Downloaded 92 times)
  • Attachment: object.PNG
    (Size: 4.02KB, Downloaded 85 times)
Re: Integrate Xtext editor in Sirius Properties [message #1822007 is a reply to message #1822004] Tue, 25 February 2020 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Hello Alexandra,

I think that this integration of Xtext within Sirius diagram will work for you [1] [2] [3].

Hope this helps.

Cheers,
Anthony
[1] https://www.nikostotz.de/blog/xtext-editors-within-sirius-diagrams/
[2] https://github.com/altran-mde/xtext-sirius-integration
[3] https://altran-mde.github.io/xtext-sirius-integration.io/userguide/
Re: Integrate Xtext editor in Sirius Properties [message #1822013 is a reply to message #1822007] Tue, 25 February 2020 11:37 Go to previous messageGo to next message
Eclipse UserFriend
Hi

My understanding is that Xtext edits a Resource corresponding to a document, consequently if you want to edit only a fraction of an overall document, you need to be able to present what you regard as a sub-document as a full document to Xtext.

For OCL with OCLinEcore and CompleteOCL full documents, the EssentialOCL sub-grammar supports editing a single expression, using a TransientASResource to avoid persisting all the partial contents.

Regards

Ed Willink
Re: Integrate Xtext editor in Sirius Properties [message #1822064 is a reply to message #1822013] Wed, 26 February 2020 08:45 Go to previous messageGo to next message
Eclipse UserFriend
Hello Anthony,

Works like a charm. I guess I overlooked those resources when I found them in the first place.

Thank you very much! :)

Alexandra
Re: Integrate Xtext editor in Sirius Properties [message #1822067 is a reply to message #1822064] Wed, 26 February 2020 09:21 Go to previous message
Eclipse UserFriend
Hi Alexandra,

That's great! I'm happy to have helped you.

Cheers,
Anthony

Previous Topic:Customized labels in selection wizard
Next Topic:Remove actions from context menu {Diagram Editor}
Goto Forum:
  


Current Time: Tue Jun 24 16:35:28 EDT 2025

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

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

Back to the top