Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » ValidationMarkerManager marks objects with partly matching URI
icon5.gif  ValidationMarkerManager marks objects with partly matching URI [message #1383921] Tue, 27 May 2014 08:33 Go to next message
Patrick Rammelt is currently offline Patrick RammeltFriend
Messages: 5
Registered: May 2014
Junior Member
Hi,

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,
Patrick
Re: ValidationMarkerManager marks objects with partly matching URI [message #1383985 is a reply to message #1383921] Tue, 27 May 2014 16:02 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 295
Registered: March 2012
Senior Member
On 27/05/2014 17:15, Patrick Rammelt wrote:

> 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?

This seems to be Sphinx, so better ask on the Sphinx forum.
icon3.gif  Re: ValidationMarkerManager marks objects with partly matching URI [message #1384019 is a reply to message #1383985] Tue, 27 May 2014 20:23 Go to previous message
Patrick Rammelt is currently offline Patrick RammeltFriend
Messages: 5
Registered: May 2014
Junior Member
Felix Dorner wrote on Tue, 27 May 2014 12:02
On 27/05/2014 17:15, Patrick Rammelt wrote:

> 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?

This seems to be Sphinx, so better ask on the Sphinx forum.


Ah, ok... done that...

Thanks,
Patrick
Previous Topic:[CDO] OCL query failing on a newly started CDO server...
Next Topic:[CDO] CDO Server in daemon mode with start, stop restart
Goto Forum:
  


Current Time: Sat Apr 20 00:22:00 GMT 2024

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

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

Back to the top