[EGL] How to add a content type [message #759946] |
Wed, 30 November 2011 11:27  |
Eclipse User |
|
|
|
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 07:51  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04421 seconds