Hello everybody,
I created custom error IMarker for specific error on files of Eclipse plugins project.
Now I would like these markers will take into account to block the launch of the Eclipse runtime.
If I create my marker with the type IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER all is fine for me, the MesssageDialog indicating errors appears when I try to launch a runtime.
But creating a new marker as subtype of JAVA_MODEL_PROBLEM_MARKER (using dedicated extension point), the standart launch config ignores these markers.
After investigations, I found the problem comes this method:
org.eclipse.pde.launching.AbstractPDELaunchConfiguration.isLaunchProblem(IMarker)
where the marker type is checked with marker.getType().equals(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER)
and not with marker.isSubtypeOf(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER)
(patching with this solution, its works for me! )
So I have 2 questions:
1. Is it an error in the implementation of AbstractPDELaunchConfiguration ?
2. Is there another way to get the expected result : blocking the standard launch configuration with custom error marker ?
Thank you very much.
/Vincent