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 167584 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/tptp/wsdm/tooling/util/internal/XsdUtils.java (-1 / +4 lines)
Lines 525-534 Link Here
525
	if (!isImportNSExists(schema, namespace))
525
	if (!isImportNSExists(schema, namespace))
526
	{
526
	{
527
	    // Create XSD Import element
527
	    // Create XSD Import element
528
		// Always insert the import element as first element is schema
529
		// NOTE : Fix for Bug 167584 "Fix WSDLs from artifacts so that they pass validation in the generated projects"
530
		// https://bugs.eclipse.org/bugs/show_bug.cgi?id=167584
528
	    XSDImport xsdImport = XSDFactory.eINSTANCE.createXSDImport();
531
	    XSDImport xsdImport = XSDFactory.eINSTANCE.createXSDImport();
529
	    xsdImport.setNamespace(namespace);
532
	    xsdImport.setNamespace(namespace);
530
	    xsdImport.setSchemaLocation(schemaLocation);
533
	    xsdImport.setSchemaLocation(schemaLocation);
531
	    schema.getContents().add(index+1, xsdImport);
534
	    schema.getContents().add(0, xsdImport);
532
	}
535
	}
533
    }
536
    }
534
    
537
    

Return to bug 167584