Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » [Solved] Validate for Non Ascii characters(Validate for Non Ascii characters while providing values in Properties View)
[Solved] Validate for Non Ascii characters [message #649192] Tue, 18 January 2011 01:06 Go to next message
Jeno Jeyakumar Nathaniel is currently offline Jeno Jeyakumar Nathaniel
Messages: 18
Registered: April 2010
Junior Member
Hi All,

I have to validate the model xml for Non Ascii characters(except few like £).So i need to trigger a event to validate while providing values for the attributes of node(same as a exception being triggered when we provide date in wrong format).

Thanks,
Jeno.

[Updated on: Thu, 03 February 2011 05:33]

Report message to a moderator

Re: Validate for Non Ascii characters [message #649332 is a reply to message #649192] Tue, 18 January 2011 13:12 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26013
Registered: July 2009
Senior Member
Jeno,

You could define your own EDataType for java.lang.String and specialize
the createAbcFromString method to reject characters you don't want. Or,
with extended metadata annotations, you can define a pattern constraint
on your own EDataType that would only allow whatever characters you want
to allow


Jeno Jeyakumar Nathaniel wrote:
> Hi All,
>
> I have to validate the model xml for Non Ascii characters(except few
> like £).So i need to trigger a event to validate while providing
> values for the attributes of node(same as a exception being triggered
> when we provide date in wrong format).
>
> Thanks,
> Jeno.
>
Re: Validate for Non Ascii characters [message #649932 is a reply to message #649332] Thu, 20 January 2011 23:19 Go to previous message
Jeno Jeyakumar Nathaniel is currently offline Jeno Jeyakumar Nathaniel
Messages: 18
Registered: April 2010
Junior Member
Thanks Ed. I tried creating my own Data Type and its working fine.

Regards,
Jeno
Previous Topic:Editing of invisible labels when edit part is added bug or expected behaviour?
Next Topic:Removing editMenu from popup contributions throws an error in error log
Goto Forum:
  


Current Time: Thu Aug 28 19:23:56 EDT 2014

Powered by FUDForum. Page generated in 0.02426 seconds