How to avoid 'Publish Web Service' Page in the Web Service Wizard? [message #484109] |
Fri, 04 September 2009 10:44 |
Tilak Sharma Messages: 48 Registered: July 2009 |
Member |
|
|
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
|
|
|
Re: How to avoid 'Publish Web Service' Page in the Web Service Wizard? [message #484719 is a reply to message #484109] |
Tue, 08 September 2009 21:15 |
Mark Hutchinson Messages: 53 Registered: July 2009 |
Member |
|
|
Hi Tilak,
There's a check box on the first page of the wizard that says "Publish
Web Service". I would expect that if this is unchecked then the publish
page should never come up. However, I just tried this out and this
doesn't seem to be the case.
I found an old bug open for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=121887
You can add your comments there, or vote for that bug to be fixed.
(You're also welcome to try and fix it :) )
Thanks
Tilak wrote:
> 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04392 seconds