Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » markerResolution to add quick fixes has no effect
markerResolution to add quick fixes has no effect [message #922162] Mon, 24 September 2012 20:02 Go to next message
Hugo Emil is currently offline Hugo EmilFriend
Messages: 2
Registered: September 2012
Junior Member
Hello,

I want to mark code with an IMarker in my plugin and want to add quick fixes at the marked positions. The first thing works fine, but I`m not able to add quick fixes.

After an Internet Search I built my plugin.xml like this:

<extension id="testMarker"
   name="BlaBla"
   point="org.eclipse.core.resources.markers">
  <persistent value="true"/>
  <super type= "org.eclipse.core.resources.problemmarker"/>
</extension>


<extension point="org.eclipse.ui.ide.markerResolution">
	<markerResolutionGenerator
 	class="org.bla.plugin.code.MyMarkerResolutionGenerator"
 	markerType="org.bla.plugin.testMarker"/>
 </extension> 


The class MyMarkerResolutionGenerator must implement the interface IMarkerResolutionGenerator2

My eclipse version 3.7.2 did not include this interface. So I downloaded the org.eclipse.ui.ide_3.7.0.I20110519-0100.jar.

After that I could write the MyMarkerResolutionGenerator.java. But in the plugin this has no effect. The MyMarkerResolutionGenerator will not be called. None of my breakpoints have an effect.

Does anyone know where my problem is?

Thank you!

Re: markerResolution to add quick fixes has no effect [message #922985 is a reply to message #922162] Tue, 25 September 2012 14:12 Go to previous message
Hugo Emil is currently offline Hugo EmilFriend
Messages: 2
Registered: September 2012
Junior Member
Ok. I`m a plugin newbie. I fixed it.

I forgot to add a jar dependency in the dependencies of the plugin.xml.
I did it how I learned it. In the build path of the project.

Previous Topic:VariableDeclarationFragment /resolveBinding() is returning null
Next Topic:Creating a feature patch for org.eclipse.core.filesystem
Goto Forum:
  


Current Time: Fri Mar 29 01:43:26 GMT 2024

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

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

Back to the top