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 02:58 Go to next message
Andreas Voss is currently offline Andreas Voss
Messages: 51
Registered: July 2009
Member
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,
Andreas
Re: [MTL] Add custom function for special formatting? [message #57369 is a reply to message #57343] Fri, 13 February 2009 03:54 Go to previous message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1621
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090904090804020203020207
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
Obeo

Andreas Voss a
Previous Topic:[Announce] M2T XPAND 0.7.0 I200902121838 is available
Next Topic:[MTL] How to register ecore metamodel for the editor?
Goto Forum:
  


Current Time: Wed Jul 23 05:53:11 EDT 2014

Powered by FUDForum. Page generated in 0.11462 seconds