Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » can we invoke IFormatter2 through context menu?(can we invoke IFormatter2 through context menu)
can we invoke IFormatter2 through context menu? [message #1854195] Fri, 05 August 2022 12:48 Go to next message
Nagaraj Kandoor is currently offline Nagaraj KandoorFriend
Messages: 56
Registered: May 2020
Member
can we invoke IFormatter2 implementaion through context menu?for all resourceset?

usually when we save a resource xtext will call IFormatter2 implementation to format resource. (Serializer xtext class)

Any input will be appreciated

Thanks
Nagaraj
Re: can we invoke IFormatter2 through context menu? [message #1854196 is a reply to message #1854195] Fri, 05 August 2022 12:55 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14735
Registered: July 2009
Senior Member
you can implement such a command yourself.
maybe you can take https://dietrich-it.de/xtext/2011/10/15/xtext-calling-the-generator-from-a-context-menu/ as a starting point


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: can we invoke IFormatter2 through context menu? [message #1854197 is a reply to message #1854196] Fri, 05 August 2022 12:59 Go to previous message
Nagaraj Kandoor is currently offline Nagaraj KandoorFriend
Messages: 56
Registered: May 2020
Member
@Christian Dietrich Thank you.
Previous Topic:Adding references to BPMN2 models from xText DSL
Next Topic:Fomratting won't work correctly when save xtext resource programmatically AbstractFormatter2
Goto Forum:
  


Current Time: Tue Dec 03 11:15:30 GMT 2024

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

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

Back to the top