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
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 08:54 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
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: Tue Apr 16 15:21:02 GMT 2024

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

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

Back to the top