Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EGL] How to add a content type
[EGL] How to add a content type [message #759946] Wed, 30 November 2011 16:27 Go to next message
Hugo A. Garcia is currently offline Hugo A. GarciaFriend
Messages: 258
Registered: July 2009
Senior Member
Hi

I am producing C++ code ans was wondering how I can add a content type
for C++?

Can it done programitaclly since I am doing the transformations
"standalone"?

I also have the Epsilon source so maybe if you point me in the right
direction then this could be a contribution??? OR I can figure out
something that works in "standalone" code?

thanks

-H
Re: [EGL] How to add a content type [message #760133 is a reply to message #759946] Thu, 01 December 2011 12:51 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi,

Actually, I would suggest that you use the Java content type for C++ programs. Currently, EGL only uses the content type to determine what style of comments to use in the generated code. As Java and C++ use the same style of comments (i.e. // or /* */), you can safely use the Java content type.

For reference, you can add further content types by overriding the getContentTypeRepository() method in EglContext, and providing your own implementation of the ContentTypeRepository class. This is a little bit more complicated than it needs to be, so if you're really interested in adding more content types, let me know and I'll simplify the process.

Hope this helps.

Cheers,
Louis.
Previous Topic:[Eugenia] Change node's image after a changing of an attribute
Next Topic:[Eugenia] Containing Relation ? Bug ?
Goto Forum:
  


Current Time: Fri Apr 26 04:35:55 GMT 2024

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

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

Back to the top