/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { DocumentationPropertiesEditionPart documentationPart = (DocumentationPropertiesEditionPart) editingPart; if (MappingPackage.eINSTANCE.getDocumentedElement_Documentation().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && documentationPart != null && isAccessible(MappingViewsRepository.Documentation.Documentation_.documentation__)) { if (msg.getNewValue() != null) { documentationPart.setDocumentation( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { documentationPart.setDocumentation(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, * int, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.resource.ResourceSet) */ public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) { setInitializing(true); if (editingPart != null && key == partKey) { editingPart.setContext(elt, allResource); final DocumentedElement documentedElement = (DocumentedElement) elt; final DocumentationPropertiesEditionPart documentationPart = (DocumentationPropertiesEditionPart) editingPart; // init values if (isAccessible(MappingViewsRepository.Documentation.Documentation_.documentation__)) documentationPart.setDocumentation( EcoreUtil.convertToString( EcorePackage.Literals.ESTRING, documentedElement.getDocumentation())); // init filters // init values for referenced views // init filters for referenced views } setInitializing(false); }