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

Bug 370830

Summary: closing the desktop should close all open forms as well
Product: z_Archived Reporter: Andi Bur <andi.bur>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Andi Bur CLA 2012-02-07 09:37:02 EST
When the desktop is closed, all open forms are just removed from the view and dialog stacks, respectively. The forms however are not closed. Hence any clean-up operations must be implemented as desktop listeners. This approach still breaks a form's life cycle.

Suggestion:
Close all forms after the desktop close event has been fired to ensure that existing listener-based implementations are not broken.

This bug is important for web GUI applications. Other than rich clients, closing the desktop in a web client does not exit the java process. Hence it is a potential source for memory leaks.
Comment 1 Andi Bur CLA 2012-02-07 17:52:18 EST
The desktop now closes all forms available on dialog stack, view stack or those that are referenced by a form tool button. Further all outlines (i.e. trees) are disposed as well. Disposing an outline triggers to dispose all its pages (i.e. nodes). This way it is guaranteed that all custom dispose operations available either as listener or execDisposeXXX method override are invoked too.
Comment 2 Matthias Zimmermann CLA 2012-07-09 06:50:12 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)