/** * {@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 RotateAnimation rotateAnimation = (RotateAnimation) elt; final RotateAnimationPropertiesEditionPart basePart = (RotateAnimationPropertiesEditionPart) editingPart; // init values if (rotateAnimation.getFromAlpha() != null && isAccessible(DroidViewsRepository.RotateAnimation.Properties.fromAlpha)) basePart.setFromAlpha( EEFConverterUtil.convertToString( EcorePackage.eINSTANCE.getEFloatObject(), rotateAnimation.getFromAlpha())); if (rotateAnimation.getToAlpha() != null && isAccessible(DroidViewsRepository.RotateAnimation.Properties.toAlpha)) basePart.setToAlpha( EEFConverterUtil.convertToString( EcorePackage.eINSTANCE.getEFloatObject(), rotateAnimation.getToAlpha())); // init filters // init values for referenced views // init filters for referenced views } setInitializing(false); }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { if (editingPart.isVisible()) { RotateAnimationPropertiesEditionPart basePart = (RotateAnimationPropertiesEditionPart) editingPart; if (DroidPackage.eINSTANCE.getTerminalAnimationElements_FromAlpha().equals(msg.getFeature()) && basePart != null && isAccessible(DroidViewsRepository.RotateAnimation.Properties.fromAlpha)) { if (msg.getNewValue() != null) { basePart.setFromAlpha( EcoreUtil.convertToString( EcorePackage.eINSTANCE.getEFloatObject(), msg.getNewValue())); } else { basePart.setFromAlpha(""); } } if (DroidPackage.eINSTANCE.getTerminalAnimationElements_ToAlpha().equals(msg.getFeature()) && basePart != null && isAccessible(DroidViewsRepository.RotateAnimation.Properties.toAlpha)) { if (msg.getNewValue() != null) { basePart.setToAlpha( EcoreUtil.convertToString( EcorePackage.eINSTANCE.getEFloatObject(), msg.getNewValue())); } else { basePart.setToAlpha(""); } } } }