I ran into a problem with the Eclipse formatter.  It won't format my code correctly when declaring methods within a class declaration.  It puts a new line after the method's return type.

I already exported the style xml file and examined the settings in it, but none of the settings have any apparent connection to this problem, and the settings editor in Eclipse didn't show the same problem happening in it's sample code for method declarations.

Here is an example bit of code for what I want to have happen:

class MyClass
{
    public:
        MyClass();
        void myMethod();
};


However, this is what I get:

class MyClass
{
    public:
        MyClass();
        void
        myMethod();
};


Again, in the styles editor, the code doesn't have this problem and looks just how I want it to, but in the actual code, the story is different.

I'm using version 3.8.0.  Any help is appreciated.

Edit: I deleted those source files that were formatted incorrectly (after formatting the code several times to no avail) and replaced them with "identical" files with the same methods, same structure, etc.  I formatted the code this time and it worked.  This is probably a bug, but I'm leaving it up just in case anyone else encounters a similar problem or has a solution to avoiding this problem in the first place.


Question: Where did the daylight come from in the interior of Babylon 5?
Answer: In a piece originally written on GEnie and archived on the excellent Lurker's Guide website, J. Michael Straczynski describes the station as being;


  "...patterned physically after the work of such scientists as Gerard
  K. O'Neill"


with the central core of the station containing a 


  "hollow-world look, with fields and hydroponic gardens along the
  360-degree circular section (which is about a half-mile, or a mile
  across)...This area is known as the Garden."


If you study other O'Neill Cyclinders, you can see that they have alternating glass and land sections to allow light but the B5 gardens seem to be lit using a "sun line", either chanelling light from the nearby Epsilon Eridani star using mirrors or simply creating artificial light using the station's powerful fusion reactors. The lack of an obvious channel between the exterior of the station and the interior would strongly suggest that it's the latter.

You can see the "sun lines" in the pictures and video below;