use of org.obeonetwork.dsl.interaction.parts.CombinedFragmentPropertiesEditionPart in project InformationSystem by ObeoNetwork.
the class CombinedFragmentCombinedFragmentPropertiesEditionComponent 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 CombinedFragment combinedFragment = (CombinedFragment) elt;
final CombinedFragmentPropertiesEditionPart combinedFragmentPart = (CombinedFragmentPropertiesEditionPart) editingPart;
// init values
if (isAccessible(InteractionViewsRepository.CombinedFragment.Properties.name))
combinedFragmentPart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, combinedFragment.getName()));
if (isAccessible(InteractionViewsRepository.CombinedFragment.Properties.operator))
combinedFragmentPart.setOperator(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, combinedFragment.getOperator()));
if (isAccessible(InteractionViewsRepository.CombinedFragment.Properties.description))
combinedFragmentPart.setDescription(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, combinedFragment.getDescription()));
// init filters
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
Aggregations