Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Validation of root diagram element
Validation of root diagram element [message #997249] Fri, 04 January 2013 12:05 Go to next message
Nick Collier is currently offline Nick Collier
Messages: 20
Registered: July 2009
Junior Member
My root container object has some properties that I want to batch validate. I'd like this to work in the same way as I've validated other diagram elements, displaying the error marker, showing an error in the error pane and so forth. I've have this working with those diagram elements but can't figure out how to get it to work with the Diagram object itself. I don't see anyway to select that as a "diagram element target." Any suggestions appreciated.

thanks,

Nick
Re: Validation of root diagram element [message #997383 is a reply to message #997249] Mon, 07 January 2013 04:22 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

what do you use for validation?

Ralph
Re: Validation of root diagram element [message #997449 is a reply to message #997383] Mon, 07 January 2013 09:56 Go to previous messageGo to next message
Nick Collier is currently offline Nick Collier
Messages: 20
Registered: July 2009
Junior Member
I've been using audit rules in the gmf map and setting the language to Java.
Re: Validation of root diagram element [message #997540 is a reply to message #997449] Tue, 08 January 2013 03:40 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi Nick,

do you use Domain Element Target or Diagram Element Target? If I use Domain Element Target I can select the root of my diagram.

Ralph
Re: Validation of root diagram element [message #997728 is a reply to message #997540] Tue, 08 January 2013 11:05 Go to previous messageGo to next message
Nick Collier is currently offline Nick Collier
Messages: 20
Registered: July 2009
Junior Member
Yeah, I tried that and it will validate but I don't get any visual notification that there is an error. That's really what I'm looking for. Something to tell the user that there is a problem. Maybe I'm missing something there.

thanks,

Nick
Re: Validation of root diagram element [message #998129 is a reply to message #997728] Wed, 09 January 2013 07:26 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

does the error pop up in the problem view after validation? If it does so this could be a limitation of GMF runtime. Maybe you could open a bug on this.

Ralph
Previous Topic:Disable a property in diagram editor
Next Topic:Compartment layout problem after update to Juno
Goto Forum:
  


Current Time: Wed Aug 27 23:21:25 EDT 2014

Powered by FUDForum. Page generated in 0.01805 seconds