Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] JFace tree hacks

On Fri, 2002-08-23 at 14:56, Steve Northover wrote:
> 
> Seth, there is lots of history surronding this decision.  The summary is
> that at the time,
> it was not clear that every platform supports "setHasChildren" but it is
> clear that the
> dummy hack will work everywhere.   In a past life, I had to implement
> "setHasChildren"
> on OS/2 PM and this was not easy.

The dummy hack doesn't work right on GtkTreeView which has no way to
freeze the tree. As long as the dummy hack is removing the nodes before
it adds others, GtkTreeView is going to have to guess when a node is the
dummy node, and defer its removal by a few seconds. At least, that's the
only way I can think to do it.

setHasChildren can be implemented just fine on every platform, its just
that on some platforms it would end up using something like the dummy
hack.

-Seth



Back to the top