Eclipse 3.5 indents this code correctly:
addWindowListener(new WindowAdapter()
{
@Override
public void windowClosing(WindowEvent e)
{
dispose();
}
});
but as you can see, it indents this code incorrectly:
final Action closewindowaction = new AbstractAction("Close window")
{
public void actionPerformed(ActionEvent e)
{
dispose();
}
};
The obvious difference is that the second example uses an assignment, but I've set assignment in line wrapping to use default indentation and I've set that default indentation to zero, so I don't see any reason why it should be misbehaving. Any idea how to fix this?