### Eclipse Workspace Patch 1.0 #P org.jboss.tools.ws.creation.ui Index: src/org/jboss/tools/ws/creation/ui/widgets/WSDL2JavaCodeGenConfigWidget.java =================================================================== --- src/org/jboss/tools/ws/creation/ui/widgets/WSDL2JavaCodeGenConfigWidget.java (revision 23524) +++ src/org/jboss/tools/ws/creation/ui/widgets/WSDL2JavaCodeGenConfigWidget.java (working copy) @@ -58,7 +58,7 @@ configCom.setLayoutData(new GridData(GridData.FILL_BOTH)); // custom package name - Label lblCustomPakage = new Label(configCom, SWT.NONE); + final Label lblCustomPakage = new Label(configCom, SWT.NONE); lblCustomPakage .setText(JBossWSCreationCoreMessages.Label_Custom_Package_Name); final Text txtCustomPkgName = new Text(configCom, SWT.BORDER); @@ -66,16 +66,15 @@ gd.horizontalSpan = 2; txtCustomPkgName.setLayoutData(gd); txtCustomPkgName.addModifyListener(new ModifyListener() { - public void modifyText(ModifyEvent e) { - if (validatePackage(txtCustomPkgName.getText())) { + if ("".equals(txtCustomPkgName.getText()) //$NON-NLS-1$ + || validatePackage(txtCustomPkgName.getText())) { model.setCustomPackage(txtCustomPkgName.getText()); } statusListener.handleEvent(null); } }); txtCustomPkgName.setText(model.getCustomPackage()); - // target new Label(configCom, SWT.NONE) .setText(JBossWSCreationCoreMessages.Label_JaxWS_Target); @@ -191,8 +190,7 @@ public void widgetSelected(SelectionEvent e) { model.setGenerateImplementatoin(btnGenDefaultImpl .getSelection()); - btnUpdateWebxml - .setEnabled(btnGenDefaultImpl.getSelection()); + btnUpdateWebxml.setEnabled(btnGenDefaultImpl.getSelection()); if (!btnGenDefaultImpl.getSelection()) { model.setUpdateWebxml(false); } else { @@ -223,7 +221,8 @@ } private void updateExtensionButtonStatus() { - boolean a = JBossWSCreationUtils.supportSOAP12(model.getWebProjectName()); + boolean a = JBossWSCreationUtils.supportSOAP12(model + .getWebProjectName()); btnExtension.setEnabled(a); btnExtension.setSelection(a); } @@ -243,7 +242,7 @@ e1.printStackTrace(); } if (status != null && status.getSeverity() == IStatus.ERROR) { - return false; + return false; } return true; } #P org.jboss.tools.ws.creation.core Index: src/org/jboss/tools/ws/creation/core/commands/InitialCommand.java =================================================================== --- src/org/jboss/tools/ws/creation/core/commands/InitialCommand.java (revision 23524) +++ src/org/jboss/tools/ws/creation/core/commands/InitialCommand.java (working copy) @@ -37,16 +37,22 @@ throws ExecutionException { try { - String location = JBossWSCreationUtils.getJBossWSRuntimeLocation(JBossWSCreationUtils.getProjectByName(model.getWebProjectName())); + String location = JBossWSCreationUtils + .getJBossWSRuntimeLocation(JBossWSCreationUtils + .getProjectByName(model.getWebProjectName())); if (location.equals("")) { //$NON-NLS-1$ return StatusUtils .errorStatus(JBossWSCreationCoreMessages.Error_WS_Location); - } else if(!new Path(location).append(JBossWSCreationCoreMessages.Bin).append(JBossWSCreationCoreMessages.Command).toFile().exists()){ + } else if (!new Path(location) + .append(JBossWSCreationCoreMessages.Bin) + .append(JBossWSCreationCoreMessages.Command).toFile() + .exists()) { return StatusUtils - .errorStatus(JBossWSCreationCoreMessages.Error_WS_Location); + .errorStatus(JBossWSCreationCoreMessages.Error_WS_Location); } } catch (CoreException e1) { - return StatusUtils.errorStatus(JBossWSCreationCoreMessages.Error_WS_Location); + return StatusUtils + .errorStatus(JBossWSCreationCoreMessages.Error_WS_Location); } model.setTarget(JBossWSCreationCoreMessages.Value_Target_0); if (scenario == WebServiceScenario.TOPDOWN) { @@ -54,10 +60,9 @@ model.setWsdlURI(ws.getWebServiceInfo().getWsdlURL()); WSDLPropertyReader reader = new WSDLPropertyReader(); reader.readWSDL(ws.getWebServiceInfo().getWsdlURL()); - model.setCustomPackage(reader.packageFromTargetNamespace()); + model.setCustomPackage(""); //$NON-NLS-1$ model.setServiceList(reader.getServiceList()); model.setPortTypeList(reader.getPortTypeList()); - } catch (WSDLException e) { JBossWSCreationCorePlugin.getDefault().logError(e); return StatusUtils.errorStatus(e.getLocalizedMessage(), e); Index: src/org/jboss/tools/ws/creation/core/commands/InitialClientCommand.java =================================================================== --- src/org/jboss/tools/ws/creation/core/commands/InitialClientCommand.java (revision 23524) +++ src/org/jboss/tools/ws/creation/core/commands/InitialClientCommand.java (working copy) @@ -77,7 +77,7 @@ reader .readWSDL(wsClient.getWebServiceClientInfo() .getWsdlURL()); - model.setCustomPackage(reader.packageFromTargetNamespace()); + model.setCustomPackage(""); //$NON-NLS-1$ model.setServiceList(reader.getServiceList()); model.setPortTypeList(reader.getPortTypeList()); } catch (WSDLException e) {