Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 22:27 Go to next message
Selvaganesh Murugan is currently offline Selvaganesh MuruganFriend
Messages: 14
Registered: December 2018
Junior Member
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 14:16 Go to previous messageGo to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
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 17:35 Go to previous message
Selvaganesh Murugan is currently offline Selvaganesh MuruganFriend
Messages: 14
Registered: December 2018
Junior Member
Thanks for the clarification!
Previous Topic:Implement network socket interface
Next Topic:Project status
Goto Forum:
  


Current Time: Fri Oct 11 00:31:32 GMT 2024

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

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

Back to the top