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

Bug 353329

Summary: Prepare does not work if the parent sub-application not already exists
Product: [RT] Riena Reporter: Thorsten Schenkel <thorsten.schenkel>
Component: navigationAssignee: Project Inbox <riena.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Sample to reproduve the problem none

Description Thorsten Schenkel CLA 2011-07-28 10:22:19 EDT
You have an application with two sub-applications. The 2nd application hasn't been activate yet. You navigate from the first sub-application to a sub-module in the 2nd sub-application. But module-group, module, a sibling sub-module of the sub-module and the sub-application itself are not yet a part of the 2nd sub-application. They will be created and added to the sub-application. Both sub-modules has a flag that informs that prepare is required. But in this scenario prepare does not work.
Maybe a this time not all necessary listeners exists. Usually when a module group is added to a sub-application a method is called that prepares the child nodes. This happens when the the listener ApplicationViewAdvisor.MyModuleGroupNodeListener handles the event parentChanged. But parentChanged isn't called in this scenario.
Comment 1 Thorsten Schenkel CLA 2011-07-28 10:29:25 EDT
Created attachment 200531 [details]
Sample to reproduve the problem

After starting the SWT Example Client activate "Navigate".
Click "Navigate to shared, prepared..."
Sub-Application will be activated. At the end of the navigation you will find the module "SharedPrepared". Both sub-modules have the flag "requiredPrepare". But the sub-module "Date" is not prepared at this moment. The sub-module has no marker. After activation of the sub-module you can see the error marker in the navigation tree. But this is too late.