Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 169672 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/tptp/wsdm/tooling/wizard/capability/internal/NewCapabilityCreationAction.java (-3 / +3 lines)
Lines 202-208 Link Here
202
		}
202
		}
203
		
203
		
204
		JavaProperty[] importedJavaProperties = (JavaProperty[])_data.getParameter(CapabilityCreationConfigurationData.IMPORTED_JAVA_PROPERTIES_KEY);
204
		JavaProperty[] importedJavaProperties = (JavaProperty[])_data.getParameter(CapabilityCreationConfigurationData.IMPORTED_JAVA_PROPERTIES_KEY);
205
		if(importedJavaProperties.length!=0)
205
		if(importedJavaProperties != null && importedJavaProperties.length!=0)
206
		{
206
		{
207
			XSDSchema xsdSchema = XsdUtils.getSchema(_xsdFile);
207
			XSDSchema xsdSchema = XsdUtils.getSchema(_xsdFile);
208
			ImportJavaPropertyCommand command = new ImportJavaPropertyCommand(xsdSchema, importedJavaProperties, resourcePropertyElement);
208
			ImportJavaPropertyCommand command = new ImportJavaPropertyCommand(xsdSchema, importedJavaProperties, resourcePropertyElement);
Lines 240-246 Link Here
240
		_wsdlCapDefinition.getDefinition().addPortType(portType);
240
		_wsdlCapDefinition.getDefinition().addPortType(portType);
241
241
242
		Operation[] importOperations = (Operation[])_data.getParameter(CapabilityCreationConfigurationData.IMPORTED_OPERATIONS_KEY);
242
		Operation[] importOperations = (Operation[])_data.getParameter(CapabilityCreationConfigurationData.IMPORTED_OPERATIONS_KEY);
243
		if(importOperations.length!=0)
243
		if(importOperations != null && importOperations.length!=0)
244
		{
244
		{
245
			URI importedWsdlURI = (URI) _data.getParameter(CapabilityCreationConfigurationData.IMPORTED_WSDL_URI_KEY);
245
			URI importedWsdlURI = (URI) _data.getParameter(CapabilityCreationConfigurationData.IMPORTED_WSDL_URI_KEY);
246
			Definition importedWsdlDefinition = (Definition) _data.getParameter(CapabilityCreationConfigurationData.IMPORTED_WSDL_DEF_KEY);
246
			Definition importedWsdlDefinition = (Definition) _data.getParameter(CapabilityCreationConfigurationData.IMPORTED_WSDL_DEF_KEY);
Lines 250-256 Link Here
250
		}
250
		}
251
		
251
		
252
		JavaOperation[] javaOperations = (JavaOperation[])_data.getParameter(CapabilityCreationConfigurationData.IMPORTED_JAVA_OPERATIONS_KEY);
252
		JavaOperation[] javaOperations = (JavaOperation[])_data.getParameter(CapabilityCreationConfigurationData.IMPORTED_JAVA_OPERATIONS_KEY);
253
		if(javaOperations.length!=0)
253
		if(javaOperations != null && javaOperations.length!=0)
254
		{
254
		{
255
			ImportJavaOperationCommand command = new ImportJavaOperationCommand(_wsdlCapDefinition, javaOperations);
255
			ImportJavaOperationCommand command = new ImportJavaOperationCommand(_wsdlCapDefinition, javaOperations);
256
			command.execute();
256
			command.execute();

Return to bug 169672