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

Bug 167348

Summary: [Workbench] WorkbenchAdvisor#preShutdown() misses details about how the application was closed
Product: [Eclipse Project] Platform Reporter: Benjamin Pasero <bpasero>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 Keywords: helpwanted
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Benjamin Pasero CLA 2006-12-10 11:20:17 EST
Eclipse 3.3. M3

preShutdown() should provide details about how the application was closed:

- QuitAction
- Shell closed
- ESC pressed

Usecase: A lot of applications provide an option to move the application to the system-tray when you hit the Close-Button on the Shell. However, as soon as the user performs the QuitAction, the application should really quit.

Ben
Comment 1 Tod Creasey CLA 2006-12-11 09:33:29 EST
Ben please feel free to attach a suggested API as a patch. Bear in mind that M5 is the API freeze for 3.3.
Comment 2 Benjamin Pasero CLA 2006-12-11 18:51:38 EST
It turns out WorkbenchWindowAdvisor#preWindowShellClose() is totally doing what I was looking for :)

Ben