Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to inherit quick fix behaviour of problems view in custom markers view?
How to inherit quick fix behaviour of problems view in custom markers view? [message #1066647] Wed, 03 July 2013 14:38 Go to next message
Jan Reimann is currently offline Jan Reimann
Messages: 127
Registered: July 2009
Senior Member
According to this great tutorial here:
http://blog.eclipse-tips.com/2008/11/creating-custom-marker-view.html
I created my custom markers view for my own marker. Now I also created
quick fixes for my problems. I recognized that the
hasResolutions(IMarker) method of my quick fixer is invoked. In the
common problems view a little bulb is put in front when a quickfix of a
problem is present. The same is done in my custom marker view. But, my
problem is that I cannot press Ctrl+1 to invoke the quick fix from the
selected problem in the marker view as it can be done in the problems
view. Since the bulbs are shown I have some hope that this can be achieved.

best regards,
Jan
Re: How to inherit quick fix behaviour of problems view in custom markers view? [message #1068119 is a reply to message #1066647] Fri, 12 July 2013 09:35 Go to previous message
Jan Reimann is currently offline Jan Reimann
Messages: 127
Registered: July 2009
Senior Member
I solved it. Do the following if you need this behaviour, too.

* in the plugin containing your custom markers view create a handler
extension with the following properties:

commandId: org.eclipse.jdt.ui.edit.text.java.correction.assist.proposals
class: org.eclipse.ui.internal.views.markers.QuickFixHandler

* create a menuContribution extension with the following properties:

locationURI: popup:[here_put_in_the_ID_of_your_custom_markers_view]

* create a sub-entry of type "command" with the following properties:

commandId: org.eclipse.jdt.ui.edit.text.java.correction.assist.proposals
label: [some_custom_name_here]

After doing this you can right-click in your custom markers view and
have the above defined menu entry available. Furthermore, Ctrl+1 can be
pressed to invoke the quick fix wizard.

best regards,
Jan
Previous Topic:switchToLaunchBar link not working
Next Topic:Unable to run an eclipse plugin from 2 jar files
Goto Forum:
  


Current Time: Sun Oct 26 03:52:31 GMT 2014

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

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