|Re: Automatic handling of errors/warnings [message #1040336 is a reply to message #1038432]
||Sat, 13 April 2013 11:49
| Marco Naddeo
Registered: November 2012
Henrik Lindberg wrote on Wed, 10 April 2013 17:42|
But why are they errors in the first place? Are they linking errors? If
so, you can write a custom linker an implement the callback method that
is executed after normal linking is done.
Hi and first of all thanks for your answer.
Yes, they are linking errors.
I already tried to call the method that autofixes these errors after normal linking is done, but I don't understand where and how I could hook this call.
I saw that the XtextResource class has a method named updateInternalState whose last instruction is the call of the doLinking method... after this call, I should know the produced errors and so I should be able to trigger the appropriate method to autofix some of them, as I want.
Now, my problem is substantially that what I want to execute is an IModification (or ISemanticModification), as I do in the implementation of my quick fix, but obviously I cannot directly use a UI class from the model package... so I need a way to circumnavigate this problem.
Do you have any hint about this?
Powered by FUDForum
. Page generated in 0.01507 seconds