|RCP Marker resolution [message #692872]
||Tue, 05 July 2011 11:41
| Richard Adams
Registered: July 2009
We are developing an RCP based on EClipse 3.7 that uses problem markers to show errors in our application data-types. We use an IResourceChangeListener to generate the markers and it all works fine.
Recently we're trying to use the org.eclipse.ui.ide.markerResolution extension point to provide QuickFixes. We've tried both the IMarkerResolution and IMarkerResolution2 implementations, but neither produce the 'lightbulb' icon nor does clicking on the marker run the fix. Running through the debugger though, the method
public boolean hasResolutions(IMarker marker)
is called and returns true when appropriate, at least when the problems view is open, so I don't think there's a problem with our plugin.xml file.
Do quick-fixes only work in the JDT ui ( which we don't bundle with our app)? Is there anything else needed to get to work in an RCP? One thing I've noticed is that the image decorator requested for the marker returns null. E.g.,
image = WorkbenchPlugin.getDefault().getSharedImages().getImage(IDEInternalWorkbenchImages.IMG_OBJS_FIXABLE_WARNING)
Any help gratefully received!
[Updated on: Wed, 06 July 2011 13:48]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.21390 seconds