ValidationMarkerManager method does not return any markers
| Bugzilla Link | 565233 |
| Status | NEW |
| Importance | P3 normal |
| Reported | Jul 15, 2020 02:39 EDT |
| Modified | May 07, 2024 00:56 EDT |
| Version | 0.11.0 |
| Reporter | Stancovici Ramona |
Description
The method org.eclipse.sphinx.emf.validation.markers.ValidationMarkerManager.getValidationMarkersList(EObject, int, String) does not return any markers because of URI inconsistencies. This is due to the call to org.eclipse.sphinx.emf.validation.util.ValidationUtil.getURI(EObject), which returns a fragment based URI as the org.eclipse.sphinx.emf.util.EcoreResourceUtil.getURI(EObject) method is called to obtain the URI. This returns a fragment based URI, but there should be the expanded URI. The proposed solution would be to be called the org.eclipse.sphinx.emf.util.EcoreResourceUtil.getURI(EObject, boolean) and force the method to retrieve the expanded URI.