Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358193

Summary: expandedChanged of INavigationNodeListener creates children during expanding with SWTException: Widget is disposed
Product: [RT] Riena Reporter: Tihomir Todorov <shipetc>
Component: navigationAssignee: Project Inbox <riena.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
A simpler example, which produces the Exception.
none
The result of the simpler example (RienaApp.java).
none
The exception with the stack trace. none

Description Tihomir Todorov CLA 2011-09-20 04:09:12 EDT
Build Identifier: 20110615-0604

I want to create a navigation model like lazy loading tree, so that when i click on the plus symbol of a SubModuleNode, the node must expanded and new SubModuleNodes must created.

For this purpose i use the method expandedChanged of the class INavigationNodeListener, but i get the "SWTException: Widget is disposed" every time.

Curious of this case is, that with the method "activated" works all fine without Exceptions.

Reproducible: Always

Steps to Reproduce:
1. Override the method expandedChanged of the class SubModuleNodeListener
2. Create a new SubModuleNode using the constructor: SubModuleNode(NavigationNodeId, String)
3. Register the node using the method: registerDefinition(INavigationNode<?>, Class<? extends IController>, Object):IWorkareaDefinition 
4. Add the node to the parent node using the method addChild(C) of the class INavigationNode

All works fine but i get the above Exception every time.
Comment 1 Tihomir Todorov CLA 2011-09-20 04:37:33 EDT
Created attachment 203650 [details]
A simpler example, which produces the Exception.
Comment 2 Tihomir Todorov CLA 2011-09-20 04:46:27 EDT
Created attachment 203655 [details]
The result of the simpler example (RienaApp.java).
Comment 3 Tihomir Todorov CLA 2011-09-20 04:48:20 EDT
Created attachment 203656 [details]
The exception with the stack trace.