Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [TEXO] Importing Java package in xpt templates([TEXO] Import Java package to call standard Java objects and methods)
icon5.gif  [TEXO] Importing Java package in xpt templates [message #1462300] Wed, 05 November 2014 12:34
Guillaume Helle is currently offline Guillaume HelleFriend
Messages: 6
Registered: February 2014
Junior Member
Hello,

i am working with Enums but if i have :
<enumeration value="Pénalités"></enumeration>
the generated code is :
/**
* The enum: PÉNALITÉS <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
PÉNALITÉS(4, "Pénalités", "Pénalités") {


I want to change PÉNALITÉS to PENALITES during code generation.

So i don't want to call toUpperCase(el.name) method but :
Pattern.compile("\\p{InCombiningDiacriticalMarks}+").matcher(Normalizer.normalize(el.name, Normalizer.Form.NFD)).replaceAll("")

For that i tried to import Normalizer and Pattern in xpt file but it doesn't work...

Is there an other way for that?

Thx for your help! Smile
Guillaume

[Updated on: Wed, 05 November 2014 12:36]

Report message to a moderator

Previous Topic:EMFForms: Is it possible to split the generated controls across several wizard pages?
Next Topic:How to customize the background color of controls for entering Boolean values generated by EMFForms?
Goto Forum:
  


Current Time: Wed Apr 01 06:05:47 GMT 2020

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

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

Back to the top