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/NewCapabilityWizard.java (-7 / +13 lines)
Lines 510-518 Link Here
510
510
511
		Property[] importedProperties = (Property[]) _options
511
		Property[] importedProperties = (Property[]) _options
512
				.get(CapabilityWizardKeys.IMPORT_PROPERTY_KEY);
512
				.get(CapabilityWizardKeys.IMPORT_PROPERTY_KEY);
513
		ImportPropertyCommand command = new ImportPropertyCommand(
513
		if(importedProperties.length!=0)
514
				resourcePropertyElement, importedProperties);
514
		{
515
		command.execute();
515
			ImportPropertyCommand command = new ImportPropertyCommand(
516
					resourcePropertyElement, importedProperties);
517
			command.execute();
518
		}		
516
	}
519
	}
517
520
518
	private void createAnnotation(XSDSchema schema)
521
	private void createAnnotation(XSDSchema schema)
Lines 546-555 Link Here
546
549
547
		Operation[] importOperations = (Operation[]) _options
550
		Operation[] importOperations = (Operation[]) _options
548
				.get(CapabilityWizardKeys.IMPORT_OPERATION_KEY);
551
				.get(CapabilityWizardKeys.IMPORT_OPERATION_KEY);
549
		URI importedWsdlURI = _importOperationPage.getImportedWsdlURI();
552
		if(importOperations.length!=0)
550
		ImportOperationCommand command = new ImportOperationCommand(
553
		{
551
				_wsdlCapDefinition, importOperations, importedWsdlURI);
554
			URI importedWsdlURI = _importOperationPage.getImportedWsdlURI();
552
		command.execute();
555
			ImportOperationCommand command = new ImportOperationCommand(
556
					_wsdlCapDefinition, importOperations, importedWsdlURI);
557
			command.execute();
558
		}		
553
	}
559
	}
554
560
555
	private void wsdlEdit()
561
	private void wsdlEdit()

Return to bug 169672