[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: "List" layout on canvas

Hi again,

I progressed... a little.

I try with : mfgen-> gen editor generator -> gen diagram -> figure view map -> layout type : TOOLBAR_LAYOUT

and it keeps one per line even after reopen the editor.

But the new element are always added at the end of the canvas.

and another issue is that I can't add an EditPolicy which affect the canvas between each EditPart which constitutes line. I can only apply it on each EditPart and so inside each of them.


Aurelien Pupier wrote:

Hi,

I want to have a "list" layout on the canvas of my gmf editor.

- no overlap
- one element by line
- a policy with horizontal line to indicate to user between each elements
th e new or moved element will be placed after drop

By now I try :
- gmfgen-> gen editor generator -> gen diagram -> figure view map -> layout
type : FLOW_LAYOUT
- set a layout editpolicy

result :
at the creation my element are correctly set in place (more or less, they
are always added at the end of the list) but they are one per line
when I close and reopen or refresh they reduce them as little square and
I've got a lot in the same line even if I set a minimun dimension
For the line guiding the user, it appears on each EditPart but not between
them, i.e. not on the canvas

So how can I do that? will my approach good?

Thanks by advance for any hints

Aurelien Pupier