Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to handle 'Finish' of the Web Services Wizard?
How to handle 'Finish' of the Web Services Wizard? [message #234114] Fri, 24 July 2009 07:31 Go to next message
Tilak Sharma is currently offline Tilak SharmaFriend
Messages: 48
Registered: July 2009
Member
Hi,

I need to copy a jar file and few other artifacts into the current project
when the User Finishes the WTP Web Services Wizard by clicking 'Finish'.

How to handle the 'Finish' of the WTP Web Service wizard? Should I use
some extension point or is there any other configuration?

Thanks,
Tilak
Re: How to handle 'Finish' of the Web Services Wizard? [message #478697 is a reply to message #234114] Thu, 06 August 2009 12:47 Go to previous messageGo to next message
Tilak Sharma is currently offline Tilak SharmaFriend
Messages: 48
Registered: July 2009
Member
I figured out that the Finish of the Web Service and Web Service Client
wizards is handled in
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageMa nager.performFinish()
by default.

Is there any option to override this behavior and provide my own
performFinish() method? (like any extension point or any other handle )
Re: How to handle 'Finish' of the Web Services Wizard? [message #479638 is a reply to message #478697] Tue, 11 August 2009 19:49 Go to previous messageGo to next message
Mark Hutchinson is currently offline Mark HutchinsonFriend
Messages: 53
Registered: July 2009
Member
Tilak wrote:
> I figured out that the Finish of the Web Service and Web Service Client
> wizards is handled in
> org.eclipse.wst.command.internal.env.ui.widgets.WizardPageMa nager.performFinish()
> by default.
> Is there any option to override this behavior and provide my own
> performFinish() method? (like any extension point or any other handle )
>


Hi Tilak,

I don't think there is any extension point for this.

The web services wizard was designed to be extensible so that new web
services runtimes can be plugged in, like axis or axis2. I can't think
of a way to add commands to these runtimes that have been plugged in.
Maybe these documents will be helpful:
http://www.eclipse.org/webtools/wst/components/ws/designs/10 8595.html
http://www.eclipse.org/webtools/jst/components/ws/documents/ ContributingWebServiceRT.html
http://www.eclipse.org/webtools/jst/components/ws/documents/ ContributingWebServiceRTWithUI.html
Re: How to handle 'Finish' of the Web Services Wizard? [message #481517 is a reply to message #479638] Fri, 21 August 2009 11:09 Go to previous message
Tilak Sharma is currently offline Tilak SharmaFriend
Messages: 48
Registered: July 2009
Member
Thanks a lot for the reply, Mark !

You are right, there is no handle for finish button on the WTP Web Service
wizard! :-(

Below is my understanding after having a look at the JAX WS CXF
implementation (can be found in JAX WS sources in the CXF plugins).

All operations are performed inside the Command which are added to the
ICommandFactory which will be returned from the WebService class.

Ex: MyWebService class has develop() method for the Develope stage of the
Web Service. From this web service I create a Vector and add my commands
(which are subclasses of AbstractDataModelOperation.)

Vector commands = new Vector();
commands.add(new ExampleDefaultingCommand( model ) );
commands.add(new SampleCommand());

These commands have execute() method. Using the model passed to its
constructor operations should be performed. Undo is also supported by the
undo() method inside these commands.
Previous Topic:API to change org.eclipse.wst.common.component contents
Next Topic:Excluding Classes from a Generated JAR
Goto Forum:
  


Current Time: Thu Apr 25 04:25:10 GMT 2024

Powered by FUDForum. Page generated in 0.03100 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top