Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Property Sheet validator
Property Sheet validator [message #879536] Thu, 31 May 2012 11:40 Go to next message
Sarath Rachakonda is currently offline Sarath RachakondaFriend
Messages: 16
Registered: May 2012
Junior Member
Hi everyone,

I have Few Nodes defined and placed in the Palette. Each Node has an attribute "Name"
which can be set in the property sheet.

I have a rule that in the diagram there shouldn't be multiple Nodes with same "Name". I have to check this validation that "Name" is not same for any 2 Nodes.

I couldn't find a place in the GMF generated code to set the validator. Can someone help me on this. In the PropertySection code i have set descriptor as EMFCompositeSourcePropertyDescriptor and set validator on that but "isValid" method is not invoked when i change value in the property sheet

Thanks for your help

Re: Property Sheet validator [message #879962 is a reply to message #879536] Fri, 01 June 2012 07:56 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member

there are two nice ways to do this.

2) a look at the screencast at the bottom)

The advantage of 2) is that it validates your model independent from the editor you use for editing.

Previous Topic:Refreshing the Palette whenever a new node is added
Next Topic:Preventing dnd of compartment children outside parent node
Goto Forum:

Current Time: Mon Oct 26 08:11:38 GMT 2020

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

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

Back to the top