use of org.obeonetwork.dsl.environment.parts.AnnotationPropertiesEditionPart in project InformationSystem by ObeoNetwork.
the class AnnotationPropertiesEditionComponent method initPart.
/**
* {@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 Annotation annotation = (Annotation) elt;
final AnnotationPropertiesEditionPart annotationPart = (AnnotationPropertiesEditionPart) editingPart;
// init values
if (isAccessible(EnvironmentViewsRepository.Annotation.Properties.title_))
annotationPart.setTitle_(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, annotation.getTitle()));
if (isAccessible(EnvironmentViewsRepository.Annotation.Properties.body))
annotationPart.setBody(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, annotation.getBody()));
// init filters
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
Aggregations