Skip to main content



      Home
Home » Eclipse Projects » Papyrus for Real Time » Code Indentation/Alignment in code snippet section(Code Indentation/Alignment in code snippet section)
Code Indentation/Alignment in code snippet section [message #1806999] Mon, 20 May 2019 18:27 Go to next message
Eclipse UserFriend
Hi,

Code added in code snippet section doesn't retain the Indentation/Tab/Space/Alignment in the generated source file(s) which makes it very difficult during code reviews (say multiple if-else statements, switch-case statements).

/* UMLRTGEN-USERREGION-BEGIN model/... */
..............
/* UMLRTGEN-USERREGION-END */

Please clarify if there is a way to retain the indentation/alignment in generated source file(s).
Re: Code Indentation/Alignment in code snippet section [message #1807035 is a reply to message #1806999] Tue, 21 May 2019 10:16 Go to previous messageGo to next message
Eclipse UserFriend
This is a known bug. Unfortunately, currently there is no way to configure PapyrusRT to fix this. It is due to a bad interaction between the code generator and the code/model reconciler.

Also unfortunately, there is no active development on PapyrusRT, so a fix is not coming soon. But it is an open source tool, so if this is a very big issue for you, you can always clone the git repo and try your own fix.
Re: Code Indentation/Alignment in code snippet section [message #1807046 is a reply to message #1807035] Tue, 21 May 2019 13:35 Go to previous message
Eclipse UserFriend
Thanks for the clarification!
Previous Topic:Implement network socket interface
Next Topic:Project status
Goto Forum:
  


Current Time: Fri May 23 05:47:11 EDT 2025

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

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

Back to the top