Project

General

Profile

User story #274

Updated by Ivan Herrero over 9 years ago

Update the eclipse template plugins to automatically put the DLL_API macros.

*Remark:* In Eclipse, there are two contexts where templates are used, one while editing code (called editor templates) and another when a new item is created (called code templates; e.g. when creating a new class). These two sets of templates are not related between them, so DLL_API must be added twice. them.

*Warning:* The export option in "Window → Preferences → C/C++ → Code Style → Code Templates", executed on an Eclipse instance running on Windows, adds extra tabs and blank spaces. This is not a problem when the templates are imported on an Eclipse running on Windows because they are ignored, but on Linux they are not ignored, so it messes a bit the generated code based on templates.

h1. Source code files modified

* Assets/Configuration/marte_cpp_code_templates.xml
* Assets/Configuration/marte_cpp_editor_templates.xml

h1. Architecture & design review

N/A

h1. Code and documentation review

Verified with Eclipse 4.4.1 (Luna) running on Windows.

Verified with Eclipse 4.4.1 (Luna) running *_Pending verification on Linux. Linux._*

h1. Unit test review

N/A

Back