[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: Draw Table in Editor

"Evon" <snowice@xxxxxxxxxxxx> wrote in message
news:bu0a55$hqu$1@xxxxxxxxxxxxxx
> Hi Ingo,
>    Thanks for your reply. But i need some further clarifications...
>
> You mentioned that handles have no managing editpart, however, when i look
> at the API for Handle, we need to specify the owner of the the Handle, do
> we use the table edit part as the owner?

Of course they have an editpart - the owner, and yes, it?s the table
editpart.
You were talking of a model - editpart - relation  which doesn?t exist in
this case.

> > Implementing colspan is not a big problem, but rowspan is a little
tricky!
> Although i haven't reach that stage yet but maybe you can share why
> implementing the rowspan is more tricky so that it can start me thinking
:)
>
A cell with rowspan has the effect, that some cells of the  (rowspan -1)
rows under this cell have to be moved
to the right. And so on.... my algorithm initially calculates the original
position of the cells and then adds or subtracts
relatively the appropiate coordinates.


Regards, Ingo