[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Stupid Layout

Hi Julia,

try so make your own code formater. Its easy in Eclipse. Go to preferences=>Java=>Code Style=>Formater.
I just changed a archived profile and regenerate the diagram code. At least for the diagram it works. Other code generation I have not tried.


let me know if it works,	Martin


Cayla Sha wrote, On 25.02.2009 12:19:
Hello!

I`m "a bit" angry.
In my project I put above every code-part which I wrote the "@generated NOT". When I re-generated my project after a model-change, my code was still there. But it looked completly chaotic!


Normally the layout of my code is like this (for example):
if
{
    ...
}
else
{
    ...
}

// Or I write comments
    // like this, to explain things further

And now all my layout is broken. The brackets all look like this:
if {
    ...
} else {
    ...
}
And the indents of my comments are also away.
And when GMF thinks, that a line of code is too long, it make a line break.

This looks so chaotic. No one could read such a code! Not in a reasonable amount of time.
I`m writing my masters thesis and I want to make it my corrector as comfortable as possible when he reads my code.


And now I have to look through my whole code and rearrange the whole code! About one hour of work!
Why can`t GMF just let my code alone??


Julia