Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 29206 - [Wizards] Need way to find out if finish or cancel has been pressed
Summary: [Wizards] Need way to find out if finish or cancel has been pressed
Status: RESOLVED DUPLICATE of bug 20319
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-09 09:46 EST by Dirk Baeumer CLA
Modified: 2010-02-23 02:10 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2003-01-09 09:46:20 EST
Build I20020308

I am overriding method dispose of an IWizardPage and I need to know if the 
dispose was called due to a finish or cancel. Can appropriate API be provided ?
Comment 1 Tod Creasey CLA 2003-01-09 15:31:24 EST
The WizardDialog (actually all windows) have a return code - but I understand 
your issue - you need to be able to check what the return code of the window 
was and we provide no API that will give you the window.

We could add getReturnCode to IWizardContainer - but this would nbe a breaking 
change as IWizardContainer is public API.

The is also the option of casting the result of getWizard().getContainer() to 
Window and asking that but that is not a clean option. If you can think of any 
API we could add that is not breaking I would be happy to include it.
Comment 2 Dirk Baeumer CLA 2003-01-23 04:00:39 EST
The only idea I have is to add a new interface IWizardContainerExtension. This 
is what the reset of the platform does in this case.
Comment 3 Tod Creasey CLA 2003-01-23 16:10:04 EST
This is what I think we will have to do as well. Is this required by you for 
2.1?
Comment 4 Dirk Baeumer CLA 2003-01-24 03:32:35 EST
No for 2.1 I check if the IWizardContainer is a Window. This may fail if I get 
a different implementation of IWizardContainer, but in the context we are using 
it right now this might not happen.
Comment 5 Tod Creasey CLA 2003-01-24 07:37:29 EST
Moving to UI Inbox 

*** This bug has been marked as a duplicate of 20319 ***