Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ufk-dev] ObservableTreeNode illegal state

Hi Max,

Yes this could be a problem - as often said I'm not as knowledge in
Swing opposed to SWT so what you found out is probably true.

I'll once more try to take a look and add at least null checks which
could never harm.

Tom

Am 09.02.11 06:54, schrieb Max Gordienko:
> Hi Tom!
> 
> I believe there is a state problem in the ObservableTreeNode class.
> Methods getAllowsChildren() and getChildCount() do check for
> uninitialized nodeList field.
> Methods getChildAt() or getIndex() on the other hand dont.
> 
> As I understand JTree never calls these methods before calling one of
> the initializing methods.
> But TreeModel does not enforce this contract.
> Isn't this a problem?
> 
> Thank you!
> 
>   Max
> 
> P.S. By the way, the branch nodeList == null in
> getAllowsChildren()/getChildCount() is never executed, nodeList at
> that point it is always not null.
> _______________________________________________
> ufk-dev mailing list
> ufk-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ufk-dev


-- 
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                                        geschaeftsfuehrer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5/1    A-6020 innsbruck      phone    ++43 512 935834


Back to the top