|
Re: How to override values on the Scenario Defaults page in "Web Services" section? [message #492462 is a reply to message #490929] |
Tue, 20 October 2009 10:17  |
Eclipse User |
|
|
|
I have figured out how to set default values to Web Service Scenario defaults.
From my plugin's start() method, I invoke the below method:
private void setWebServiceScenarioDefaults() {
ScenarioContext context = WebServicePlugin.getInstance().getScenarioContext();
context.setWebServiceType( "0/"+MY_WEB_SERVICE_ID );
context.setGenerateWebService(ScenarioContext.WS_DEVELOP);
context.setClientWebServiceType(MY_WEB_SERVICE_CLIENT_ID);
context.setGenerateClient(ScenarioContext.WS_NONE);
}
So when my plugin loads, the Web Service scenario defaults will be set to my custom web service and web service client. And the Web Service silder can also be set to any level I want, by default.
"0/"+MY_WEB_SERVICE_ID is for Bottom Up case and "1/"+MY_WEB_SERVICE_ID is for Top Down case.
When Web Service Wizard is launched, these values will be read from the Web Service Scenario context and set as the default vales.
Regards,
Tilak
|
|
|
Powered by
FUDForum. Page generated in 0.05195 seconds