Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Integrate Xtext editor in Sirius Properties
Integrate Xtext editor in Sirius Properties [message #1822004] Tue, 25 February 2020 15:20 Go to next message
Alexandra Tritean is currently offline Alexandra TriteanFriend
Messages: 20
Registered: February 2019
Junior Member
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 72 times)
  • Attachment: file.PNG
    (Size: 12.54KB, Downloaded 64 times)
  • Attachment: object.PNG
    (Size: 4.02KB, Downloaded 65 times)
Re: Integrate Xtext editor in Sirius Properties [message #1822007 is a reply to message #1822004] Tue, 25 February 2020 15:27 Go to previous messageGo to next message
Antonio Garmendia is currently offline Antonio GarmendiaFriend
Messages: 93
Registered: May 2014
Member
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 16:37 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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 13:45 Go to previous messageGo to next message
Alexandra Tritean is currently offline Alexandra TriteanFriend
Messages: 20
Registered: February 2019
Junior Member
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 14:21 Go to previous message
Antonio Garmendia is currently offline Antonio GarmendiaFriend
Messages: 93
Registered: May 2014
Member
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: Wed Apr 24 23:28:21 GMT 2024

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

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

Back to the top