Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP Marker resolution
RCP Marker resolution [message #692872] Tue, 05 July 2011 07:41 Go to next message
Richard Adams is currently offline Richard Adams
Messages: 77
Registered: July 2009
Location: Edinburgh
Member
Hello
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!

Thanks
Richard


[Updated on: Wed, 06 July 2011 09:48]

Report message to a moderator

Re: RCP Marker resolution [message #707379 is a reply to message #692872] Mon, 01 August 2011 11:20 Go to previous message
Richard Adams is currently offline Richard Adams
Messages: 77
Registered: July 2009
Location: Edinburgh
Member
Perhaps to rephrase the question, does anyone know if it's possible to use the marker resolutions in an RCP that does not use the JDT, nor uses Java for its domain model?

Previous Topic:Problem with Update jar File
Next Topic:Integration of Apache HttpClient 4.1.1 to a RCP client
Goto Forum:
  


Current Time: Sat Aug 23 09:26:18 EDT 2014

Powered by FUDForum. Page generated in 0.02567 seconds