Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to mark Nodes
How to mark Nodes [message #515880] Sun, 21 February 2010 19:21 Go to next message
Eclipse UserFriend
Hi,

i changed the EMF Validation Framework Tutorial for GMF implemention.
This work well but now i want to add some Markers on Nodes which fail while Validation.
Maybe a red highlight.

Can somebody tell me how to do this?

Thanks
Re: How to mark Nodes [message #516174 is a reply to message #515880] Mon, 22 February 2010 14:36 Go to previous messageGo to next message
Eclipse UserFriend
Hi Sui,

If you don't mind trying a different validation language,
http://www.eclipse.org/gmt/epsilon/doc/articles/evl-gmf-inte gration/
provides a detailed walk through of how you can achieve this using EVL
(http://www.eclipse.org/gmt/epsilon/doc/evl/).

Cheers,
Dimitris

Sui wrote:
> Hi,
>
> i changed the EMF Validation Framework Tutorial for GMF implemention.
> This work well but now i want to add some Markers on Nodes which fail
> while Validation.
> Maybe a red highlight.
>
> Can somebody tell me how to do this?
>
> Thanks
Re: How to mark Nodes [message #516211 is a reply to message #515880] Tue, 23 February 2010 03:51 Go to previous message
Eclipse UserFriend
Hi,

thanks for your reply but i'd would like to do this without this tools.

At the moment, i have a BatchValidator File like in the EMF Validation Framework Example.
In this File, i start the ValidateAction.run() Method which creates Markers an Decoraters from the Diagnostion.
Later i try the same way of creating Decoraters as in the ValidateAction. this should work.

My question now is:
what is the difference between EMF Validation Framework an the Diagnostics Validation?
When i start the ValidateAction.run (programmly or per Edit->validate) this woks well. It also checks the OCL constraints which i did in the GmfMap File.
Now, what is the clue of EMF Validation Framework?
Do I need it ?

I am a little confused.

[Updated on: Tue, 23 February 2010 05:14] by Moderator

Previous Topic:Edge/Link children
Next Topic:GMF problem
Goto Forum:
  


Current Time: Wed Jul 23 09:48:38 EDT 2025

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

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

Back to the top