osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
39 stars 8 forks source link

Code formatting has many problems #436

Closed lwrage closed 10 years ago

lwrage commented 10 years ago

The code formatter needs to be re-worked. Currently it doesn't work with models that contain end to end flows or internal features.

lwrage commented 10 years ago

Initial improvements are done, still open:

  1. Need to set indent for declarations that continue into the next line: e2e flows, property associations, etc.
  2. Line break after ';' at end of declaration must be required, otherwise there is a problem with comments (see pullprotocol.aadl). Not clear why this is the case.
  3. Line break after ';' in property expression must be optional
  4. Xtext issue: NoSpace takes precedence over LineWrap. Need to override Xtext behavior.