Monday, April 8, 2013
Creating quick fix extension for Eclipse
Below i am listing the steps needed for creating quick fix extensions in eclipse . I am assuming that the problem has already been registered with eclipse
1.Create a marker type with extension point org.eclipse.core.resources.markers
2.Extend the org.eclipse.ui.ide.markerResolution extension point and create a markerresolutiongenerator .
3.add the marker type while creating the validation error in the code .
4.Create a class resolution generator implements IMarkerResolutionGenerator and register it to plugin while extending the extension point markerResolution .
5.In the function getResolutions(IMarker marker) return a new object which implements IMarkerResolution2 .
6.In the run function do the necessary work .
7.Use other methods such as getDescription() etc to make ur quick fix more informative
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment