public void execute() { super.execute(); try { beginRecording(complexType.getElement()); if (derivation.equals(XSDConstants.EXTENSION_ELEMENT_TAG)) { complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); } else if (derivation.equals(XSDConstants.RESTRICTION_ELEMENT_TAG)) { complexType.setDerivationMethod(XSDDerivationMethod.RESTRICTION_LITERAL); } } finally { endRecording(); } } }
UpdateAttributeValueCommand command = new UpdateAttributeValueCommand(complexType.getElement(), XSDConstants.BLOCK_ATTRIBUTE, value); command.setDeleteIfEmpty(true); getCommandStack().execute(command); UpdateAttributeValueCommand command = new UpdateAttributeValueCommand(complexType.getElement(), XSDConstants.FINAL_ATTRIBUTE, value); command.setDeleteIfEmpty(true); getCommandStack().execute(command); complexType.getElement().removeAttribute(XSDConstants.ABSTRACT_ATTRIBUTE); else complexType.getElement().removeAttribute(XSDConstants.MIXED_ATTRIBUTE); else
String blockAttValue = complexType.getElement().getAttribute(XSDConstants.BLOCK_ATTRIBUTE); if (blockAttValue != null) String finalAttValue = complexType.getElement().getAttribute(XSDConstants.FINAL_ATTRIBUTE); if (finalAttValue != null) if (complexType.getElement().hasAttribute(XSDConstants.ABSTRACT_ATTRIBUTE)) if (complexType.getElement().hasAttribute(XSDConstants.MIXED_ATTRIBUTE))
beginRecording(xsdComplexTypeDefinition.getElement()); attributeGroup.setName(getNewName("AttributeGroup")); //$NON-NLS-1$
public void execute() { try { beginRecording(input.getElement()); XSDWildcard anyAttribute = XSDFactory.eINSTANCE.createXSDWildcard(); if (xsdComplexTypeDefinition != null) { xsdComplexTypeDefinition.setAttributeWildcardContent(anyAttribute); formatChild(xsdComplexTypeDefinition.getElement()); } else if (xsdAttributeGroupDefinition != null) { xsdAttributeGroupDefinition.setAttributeWildcardContent(anyAttribute); formatChild(xsdAttributeGroupDefinition.getElement()); } addedXSDConcreteComponent = anyAttribute; } finally { endRecording(); } }
beginRecording(xsdComplexTypeDefinition.getElement()); if (!isReference) formatChild(xsdComplexTypeDefinition.getElement());
formatChild(complexType.getElement());
formatChild(xsdComplexTypeDefinition.getElement());
getGenericType(xsdComplexTypeDefinition, xsdComplexTypeDefinition.getElement(), eClass, getEcoreAttribute(xsdComplexTypeDefinition, "extends")); if (genericSuperType != null && genericSuperType.getEClassifier() instanceof EClass) xsdComplexTypeDefinition.getDerivationMethod() == XSDDerivationMethod.RESTRICTION_LITERAL; for (EGenericType eGenericType : getGenericTypes(xsdComplexTypeDefinition, xsdComplexTypeDefinition.getElement(), eClass, getEcoreAttribute(xsdComplexTypeDefinition, "implements")))
getGenericType(xsdComplexTypeDefinition, xsdComplexTypeDefinition.getElement(), eClass, getEcoreAttribute(xsdComplexTypeDefinition, "extends")); if (genericSuperType != null && genericSuperType.getEClassifier() instanceof EClass) xsdComplexTypeDefinition.getDerivationMethod() == XSDDerivationMethod.RESTRICTION_LITERAL; for (EGenericType eGenericType : getGenericTypes(xsdComplexTypeDefinition, xsdComplexTypeDefinition.getElement(), eClass, getEcoreAttribute(xsdComplexTypeDefinition, "implements")))