eclipse plugin-IMarkerResolution-How to remove eclipse's own quick fix items from the list [message #800218] |
Thu, 16 February 2012 20:45 |
Joey Zhu Messages: 7 Registered: February 2012 |
Junior Member |
|
|
Hello everyone,
I an developing a eclipse plugin, and have a question about Marker Resolution/quick fix. Basically, what I want is to show a marker besides some line of code and highlight it, and if the user clicks the marker, it will show a drop-down list, providing some predefined items for users to click. I did that by extending org.eclipse.ui.ide.markerResolution, creating MarkerResolutionGenerator classes by extending IMarkerResolutionGenerator, and MarkerResolution Classes by extending IMarkerResolutionGenerator2, IMarkerResolution, IMarkerResolution2.
But it turns out that there are some eclipse's own items in the list,(see the following image, item 'extract to a local variable' is eclipse's own). I want to know how to remove those eclipse's own items?
Additional information is if I hover over the highlighted line of code, it will also show a list, which does not contain eclipse's own items. But hover over is not what I want.
Or is there any other ways/APIs that can achieve the function I want?
any suggestions are appreciated.
Thank you!
Joey
[Updated on: Thu, 16 February 2012 20:50] Report message to a moderator
|
|
|
Re: eclipse plugin-IMarkerResolution-How to remove eclipse's own quick fix items from the list [message #800670 is a reply to message #800218] |
Fri, 17 February 2012 10:37 |
Dani Megert Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
On 16.02.2012 21:45, Joey Zhu wrote:
> Hello everyone,
>
> I an developing a eclipse plugin, and have a question about Marker
> Resolution/quick fix. Basically, what I want is to show a marker
> besides some line of code and highlight it, and if the user clicks the
> marker, it will show a drop-down list, providing some predefined items
> for users to click. I did that by extending
> org.eclipse.ui.ide.markerResolution, creating
> MarkerResolutionGenerator classes by extending
> IMarkerResolutionGenerator, and MarkerResolution Classes by extending
> IMarkerResolutionGenerator2, IMarkerResolution, IMarkerResolution2.
>
> But it turns out that there are some eclipse's own items in the
> list,(see the following image). I want to know how to remove those
> eclipse's own items?
You can't.
Dani
>
>
>
> Additional information is if I hover over the highlighted line of
> code, it will also show a list, which does not contain eclipse's own
> items. But hover over is not what I want.
>
> Or is there any other ways/APIs that can achieve the function I want?
>
>
> any suggestions are appreciated.
>
> Thank you!
>
> Joey
|
|
|
Powered by
FUDForum. Page generated in 0.03462 seconds