Author: dennyxu
Date: 2008-09-18 02:34:37 -0400 (Thu, 18 Sep 2008)
New Revision: 10343
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/AbstractGenerateCodeCommand.java
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties
Log:
JBIDE-2782: fix the bug that unable to generate implementation class
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/AbstractGenerateCodeCommand.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/AbstractGenerateCodeCommand.java 2008-09-18
05:50:15 UTC (rev 10342)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/AbstractGenerateCodeCommand.java 2008-09-18
06:34:37 UTC (rev 10343)
@@ -71,7 +71,7 @@
StringBuffer inputResult = new StringBuffer();
convertInputStreamToString(errorResult, proc.getErrorStream());
- convertInputStreamToString(errorResult, proc.getInputStream());
+ convertInputStreamToString(inputResult, proc.getInputStream());
int exitValue = proc.waitFor();
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java 2008-09-18
05:50:15 UTC (rev 10342)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java 2008-09-18
06:34:37 UTC (rev 10343)
@@ -398,8 +398,15 @@
.getComponentType()));
} else if (type instanceof ParameterizedType) {
ParameterizedType ptype = (ParameterizedType) type;
- ast.newParameterizedType(copyTypeFromOtherASTNode(ast, ptype
+ ParameterizedType newParaType = ast.newParameterizedType(copyTypeFromOtherASTNode(ast,
ptype
.getType()));
+ for(Object arg : ptype.typeArguments()){
+ if(arg instanceof Type){
+ Type newArg = copyTypeFromOtherASTNode(ast, (Type)arg);
+ newParaType.typeArguments().add(newArg);
+ }
+ }
+ return newParaType;
} else if (type instanceof WildcardType) {
WildcardType sourcetype = (WildcardType) type;
WildcardType wtype = ast.newWildcardType();
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties 2008-09-18
05:50:15 UTC (rev 10342)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties 2008-09-18
06:34:37 UTC (rev 10343)
@@ -36,7 +36,7 @@
JBossWSFacetInstallPage_Title=JBossWS Facet
JBossWSFacetInstallPage_Description=Select JBossWS Web Service runtime
JBossWSFacetInstallPage_ServerSuppliedJBossWS=Server Supplied JBossWS Runtime
-JBossWSFacetInstallPage_Deploy= Add all JBossWS runtime jars into the deploy archive
+JBossWSFacetInstallPage_Deploy= Package all JBossWS runtime jars into the deployment
archive
JBossWSFacetInstallPage_New=New...
Client_Sample_Run_Over= Call Over!