Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » eclipse plugin-IMarkerResolution-How to remove eclipse's own quick fix items from the list(IMarkerResolution-How to remove eclipse's own quick fix items from the list)
eclipse plugin-IMarkerResolution-How to remove eclipse's own quick fix items from the list [message #800218] Thu, 16 February 2012 20:45 Go to next message
Joey Zhu is currently offline Joey ZhuFriend
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?

http://i42.tinypic.com/34iingy.png

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.
http://i44.tinypic.com/11r86wy.png

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 Go to previous message
Dani Megert is currently offline Dani MegertFriend
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
Previous Topic:type mismatch: cannot convert from element type object
Next Topic:Comment faire modifier une implémentation standard
Goto Forum:
  


Current Time: Sat Sep 21 20:29:36 GMT 2024

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

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

Back to the top