use of org.obeonetwork.dsl.environment.parts.BindingInfoPropertiesEditionPart in project InformationSystem by ObeoNetwork.
the class BindingInfoBindingInfoPropertiesEditionComponent 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 BindingInfo bindingInfo = (BindingInfo) elt;
final BindingInfoPropertiesEditionPart bindingInfoPart = (BindingInfoPropertiesEditionPart) editingPart;
// init values
if (isAccessible(EnvironmentViewsRepository.BindingInfo.Properties.left)) {
bindingInfoPart.initLeft(EEFUtils.choiceOfValues(bindingInfo, EnvironmentPackage.eINSTANCE.getBindingInfo_Left()), bindingInfo.getLeft());
}
if (isAccessible(EnvironmentViewsRepository.BindingInfo.Properties.right)) {
bindingInfoPart.initRight(EEFUtils.choiceOfValues(bindingInfo, EnvironmentPackage.eINSTANCE.getBindingInfo_Right()), bindingInfo.getRight());
}
if (isAccessible(EnvironmentViewsRepository.BindingInfo.Properties.description))
bindingInfoPart.setDescription(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, bindingInfo.getDescription()));
// init filters
// Start of user code for additional businessfilters for left
// End of user code
// Start of user code for additional businessfilters for right
// End of user code
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
Aggregations