Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Problem Marker deleted at diagram opening
Problem Marker deleted at diagram opening [message #885136] Tue, 12 June 2012 14:16 Go to next message
Sylvain Dudoit is currently offline Sylvain DudoitFriend
Messages: 5
Registered: August 2011
Junior Member
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 14:36 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1635
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 16:09 Go to previous messageGo to next message
Sylvain Dudoit is currently offline Sylvain DudoitFriend
Messages: 5
Registered: August 2011
Junior Member
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 10:44 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1635
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 11:47 Go to previous message
Sylvain Dudoit is currently offline Sylvain DudoitFriend
Messages: 5
Registered: August 2011
Junior Member
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: Thu Nov 27 08:46:57 GMT 2014

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

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