use of org.obeonetwork.dsl.soa.parts.ServicePropertiesEditionPart in project InformationSystem by ObeoNetwork.
the class ServiceServicePropertiesEditionComponent 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 Service service = (Service) elt;
final ServicePropertiesEditionPart servicePart = (ServicePropertiesEditionPart) editingPart;
// init values
if (isAccessible(SoaViewsRepository.Service.Properties.synchronization)) {
servicePart.initSynchronization(EEFUtils.choiceOfValues(service, SoaPackage.eINSTANCE.getService_Synchronization()), service.getSynchronization());
}
if (isAccessible(SoaViewsRepository.Service.Properties.kind)) {
servicePart.initKind(EEFUtils.choiceOfValues(service, SoaPackage.eINSTANCE.getService_Kind()), service.getKind());
}
if (isAccessible(SoaViewsRepository.Service.Properties.name))
servicePart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, service.getName()));
if (isAccessible(SoaViewsRepository.Service.Properties.description))
servicePart.setDescription(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, service.getDescription()));
// init filters
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
Aggregations