Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Quickfix with model modification in different resource
Quickfix with model modification in different resource [message #1258940] Thu, 27 February 2014 22:55 Go to next message
Axel Ruder is currently offline Axel RuderFriend
Messages: 5
Registered: February 2014
Junior Member
Hi there,

I've developed a quickfix which fixes an error in a dsl file, but fixes the error by modifying a model element in a different dsl file. Unfortunately, this does not work.
Is this supposed to work or am I missing something else?

When I debug into the quickfix logic, I can see that the model modification is actually taking place, but somehow it is not persisted in the dsl file.

Thanks in advance for any hints!
Re: Quickfix with model modification in different resource [message #1261613 is a reply to message #1258940] Sun, 02 March 2014 20:43 Go to previous messageGo to next message
Joerg Reichert is currently offline Joerg ReichertFriend
Messages: 80
Registered: July 2009
Location: Leipzig
Member
Hi Axel,

here is an working example:
http://code.google.com/a/eclipselabs.org/p/spray/source/browse/plugins/org.eclipselabs.spray.shapes.ui/src/org/eclipselabs/spray/shapes/ui/quickfix/ShapeQuickfixProvider.java

I think you have to use XtextDocument.modify.

Best regards,
Joerg


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Re: Quickfix with model modification in different resource [message #1262023 is a reply to message #1261613] Mon, 03 March 2014 07:20 Go to previous message
Axel Ruder is currently offline Axel RuderFriend
Messages: 5
Registered: February 2014
Junior Member
Hi Joerg,

looks promising, thanks a lot!

Axel
Previous Topic:Xtext models in SOLr
Next Topic:Is it possible to deliver a basic dsl model in the target platform?
Goto Forum:
  


Current Time: Thu Apr 25 21:48:59 GMT 2024

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

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

Back to the top