Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Horstmann style formatter(Java code style)
Horstmann style formatter [message #1314514] Fri, 25 April 2014 12:16 Go to next message
Ray c is currently offline Ray c
Messages: 1
Registered: April 2014
Junior Member
I want to format java code according to the Horstmann style

en.wikipedia.org/wiki/Indent_style#Horstmann_style

In this style the first statement of a block is on the same line as the opening brace.
while (x == y)
{ something();
somethingelse();
//...
if (x < 0)
{ printf("Negative");
negative(x);
}
else
{ printf("Non-negative");
nonnegative(x);
}
}
finalthing();

How to configure the formatter to do this?
Re: Horstmann style formatter [message #1316015 is a reply to message #1314514] Sat, 26 April 2014 08:22 Go to previous message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6327
Registered: July 2009
Senior Member
HI,

this question is a bit to general to give an answer.
do you have any specific questions?
Previous Topic:edit Teneo-saved EMF Model in XText editor in RCP
Next Topic:Reference elements from a different file
Goto Forum:
  


Current Time: Wed Oct 01 00:07:11 GMT 2014

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

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