Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [MTL] Add custom function for special formatting?
[MTL] Add custom function for special formatting? [message #57343] Fri, 13 February 2009 07:58 Go to next message
Andreas Voss is currently offline Andreas VossFriend
Messages: 51
Registered: July 2009
Hi all,

during code generation I have to format a java.util.Date in a very
special way, that can only be done in java code (not ocl or mtl). I dont
want to have the formatted date be a property of my model. Is there a
way to extend the MTL function library (or maybe the OCL library) and
add a custom date formatter function?

Thanks in advance,
Re: [MTL] Add custom function for special formatting? [message #57369 is a reply to message #57343] Fri, 13 February 2009 08:54 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1855
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Andreas,

There currently is no way to extend the operations library other than
patching MTL itself. We will provide hooks in the future for such needs,
but it isn't the top priority for now with the galileo release.

Laurent Goubet

Andreas Voss a
Previous Topic:[MTL] How to register ecore metamodel for the editor?
Next Topic:Unable to load mbeans-descriptors.xml
Goto Forum:

Current Time: Mon May 21 11:12:33 GMT 2018

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

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

Back to the top