protected void setFeaturesOnChild(EObject child) { if (child instanceof QName) //This will always be true. { QName qname = (QName) child; String namespaceURIValue = featuresTexts_[0].getText(); String localPartValue = featuresTexts_[1].getText(); if (namespaceURIValue == null || namespaceURIValue.length() == 0) { //Just set the local part if (localPartValue != null && localPartValue.length() > 0) qname.setLocalPart(localPartValue); } else { if (localPartValue == null) localPartValue = ""; //$NON-NLS-1$ //Set namespace and local part using QNameHelper QNameHelper.setQNameValue(qname, namespaceURIValue, localPartValue); } } }
qnameEObject.setLocalPart(localPart);