Skip to main content



      Home
Home » Modeling » Graphiti » Problem Marker deleted at diagram opening
Problem Marker deleted at diagram opening [message #885136] Tue, 12 June 2012 10:16 Go to next message
Eclipse UserFriend
Hi,

I'm using Graphiti 0.81.

I would like to implement validation synchronization between ProblemsView and my editor. Double-click in ProblemsView should open diagram and highlight problem !

But, the DiagramEditorBehavior Twisted Evil deletes Problem Markers when opening the diagram.

Is there a way to avoid that Crying or Very Sad ?

Thank you for your work !

Sylvain
Re: Problem Marker deleted at diagram opening [message #885150 is a reply to message #885136] Tue, 12 June 2012 10:36 Go to previous messageGo to next message
Eclipse UserFriend
The diagram editor uses the emf MarkerHelper for managing the associated
problem markers. On startup of the editor, all markers are refreshed
(cleaned and craeted anew).

How do you create the markers? The Graphiti tutorial has a section on
markers, did you have a look into that?

Michael
Re: Problem Marker deleted at diagram opening [message #885213 is a reply to message #885150] Tue, 12 June 2012 12:09 Go to previous messageGo to next message
Eclipse UserFriend
For tutorial, are you refering to "Rendering Decorators" section ?

I create my markers in a "ValidateFeature" (extending CustomFeature) using EMF Validation and EMF helper like that :

IStatus status = validator.validate(domainObject);
BasicDiagnostic d = new BasicDiagnostic(status.getPlugin(), status.getSeverity(), status.getMessage(), new Object[] {domainObject});
EditUIMarkerHelper h = new EditUIMarkerHelper();
h.createMarkers(d);


The markers appears in ProblemsView properly.

In DiagramEditorBehavior.updateProblemIndication(), only errors and warnings from Resource are recreated and not from IResource. But EMF Validation doesn't populate Resource errors and warnings !

Am I missing something that should make me feel ashamed Shocked ?

Thanks,
Sylvain
Re: Problem Marker deleted at diagram opening [message #888596 is a reply to message #885213] Mon, 18 June 2012 06:44 Go to previous messageGo to next message
Eclipse UserFriend
Sorry, it took me some time to get back to this...

You're right, this doesn't seem to fit together. I'm not sure how to solve
that right now, this really needs a closer look. Would you please file a
bugzilla for this problem?

Thanks,
Michael
Re: Problem Marker deleted at diagram opening [message #888625 is a reply to message #888596] Mon, 18 June 2012 07:47 Go to previous message
Eclipse UserFriend
Of course I can do that. Even more, I already did it Wink

Cheers,
Sylvain
Previous Topic:ICreateConnection.create(): returning null Connection allowed?
Next Topic:Show Properties View in Context Menu
Goto Forum:
  


Current Time: Sat Jul 12 18:43:28 EDT 2025

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

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

Back to the top