Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to mark Nodes
How to mark Nodes [message #515880] Mon, 22 February 2010 00:21 Go to next message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
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 19:36 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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 08:51 Go to previous message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
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 10:14]

Report message to a moderator

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


Current Time: Tue Sep 29 11:52:39 GMT 2020

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

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

Back to the top