Qualified Quick Fix labels [message #986808] |
Wed, 21 November 2012 12:32  |
Eclipse User |
|
|
|
Hi
An unresolved symbol may result in multiple quick fix suggestions with
the same replacement name but for different reasons, e.g alternate
overloads of the same function. It would therefore be nice to format
each quick fix suggestion as
name - qualifiedName
I can see how to do this by overloading EObjectDescription and/or
QualifiedName and/or DefaultQuickFix in ways that were not internded and
so are likely to break in Xtext 2.5. Is there an easier way?
Regards
Ed Willink
|
|
|
|
Re: Qualified Quick Fix labels [message #987169 is a reply to message #986910] |
Fri, 23 November 2012 18:05  |
Eclipse User |
|
|
|
Hi Jan
It is only the createResolution method of the anonymous class that I
need to override, but since it is in an anonymous class it is not
extensible. It is therefore necessary to reimplement 70 lines rather
than just 15 lines. If createResolution, like fixCrossReferenceLabel was
in the outer class, extension would be much easier.
Regards
Ed
On 22/11/2012 10:49, Jan Koehnlein wrote:
> That happens in
> org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider.createLinkingIssueResolutions(Issue,
> IssueResolutionAcceptor) which is not internal in the sense of
> internal API, but a bunch of code to override, including an anonymous
> class.
>
> Am 21.11.12 18:32, schrieb Ed Willink:
>> Hi
>>
>> An unresolved symbol may result in multiple quick fix suggestions with
>> the same replacement name but for different reasons, e.g alternate
>> overloads of the same function. It would therefore be nice to format
>> each quick fix suggestion as
>>
>> name - qualifiedName
>>
>> I can see how to do this by overloading EObjectDescription and/or
>> QualifiedName and/or DefaultQuickFix in ways that were not internded and
>> so are likely to break in Xtext 2.5. Is there an easier way?
>>
>> Regards
>>
>> Ed Willink
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04573 seconds