| Re: ValidationMarkerManager marks objects with partly matching [message #1384018]
||Tue, 27 May 2014 16:20
| Patrick Rammelt
Registered: May 2014
I'm validating an EMF model by some IModelConstraints. The model is shown using a TreeViewer.
My problem is this: If an EObject "ABCXYZ" should be marked (error/warning) another EObject "ABC" of the same type gets also marked.
"ABCXYZ" and "ABC" are label attributes of the model elements and are used to create URIs for these elements (I cannot change this behavior, because I cannot change the EMF model).
In general, an EObject gets marked if its URI is partly matching the URI of another EObject for which a diagnostic result (error/warning) exists. This is how it's implemented in ValidationMarkerManager, which is a singleton.
So my question is: Is it possible to use a customized ValidationMarkerManager somehow, or is there any other way to change this behavior without changing the EMF model?
Many thanks and best regards,
Powered by FUDForum
. Page generated in 0.01674 seconds