I am using WTP Web Service Wizard, in which:
I added my custom Web Service type using the extension point:
org.eclipse.jst.ws.consumption.ui.wsImpl which added two entries to
the Web Service Type combo (as in the attachment): Bottom Up My Custom
Web Service and Top Down My Custom Web Service
Using the extension point :
org.eclipse.wst.command.env.ui.widgetRegistry I mapped a Widget
Factory (MyCustomWidgetFactory) with a Command (MyCustomCommand). for
the Bottom Up My Custom Web Service scenario.
The factory MyCustomWidgetFactory Serves 3 pages to the wizard and
then returns null from the getNextNamedWidget() method.
After all the pages are served by the factory, one more page 'Publish
Web Service' is added to the Wizard automatically, which enables the
Next button on the last page I added using the factory.
The MyCustomCommand will be executed in two cases:
On FInish of the Web Service Wizard
When Next is pressed on the last page returned by the
MyCustomWidgetFactory.
I need to generate few artifacts on the Finish of the wizard. But,
since one more extra page (Publish Web Service Page) is being added to
the wizard , my command is executed when Next is pressed on my last page.
If user clicks Cancel on the Publish Web Service Page, I need to Undo
the artifact generation using the same command's undo() method, which
includes deleting newly generated artifacts and un-modifying existing
files, which is cumbersome.
If I can execute the command on Finish of the Web Service Wizard or if
I can disable the Publish Web Service page from being added to the
Wizard, my problem will be solved.
Q1) Is there any option to disable 'Publish Web Service' Page from being
added to the wizard?
or
Q2) Can the command be executed on the Finish of the Web Service Wizard?
For Web Service Client, no pages are added at the end of the wizard,
so my command will be executed on the Finish of the Wizard. No issues
even if user cancels the wizard.
Please help me out as I am blocked because of this limitation (behavior).
Thanks in anticipation,
Tilak