Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Accessing model context in quickfix
Accessing model context in quickfix [message #987066] Fri, 23 November 2012 04:32 Go to previous message
Cedric Moonen is currently offline Cedric Moonen
Messages: 214
Registered: August 2009
Senior Member
Hello,

In one of my quickfix rules, I need to supply multiple fixes depending on my model (calling the accept method on the acceptor several times depending on the current state of my model). The only problem is that I have no clue how to access the model element which is in error/warning.
The only arguments which are passed to the quickfix method are an Issue and a IssueResolutionAcceptor. I can pass custom arguments to the Issue while creating it in my validator class but those can only be Strings.

Is there a way to retrieve my model element in the quickfix method ?

Thanks
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Unit testing hidden terminal - ParseHelper returning null model
Next Topic:Running the Xtext machinery outside the builder
Goto Forum:
  


Current Time: Wed May 22 00:34:15 EDT 2013

Powered by FUDForum. Page generated in 0.01653 seconds