use of org.obeonetwork.dsl.environment.parts.BindingReferencePropertiesEditionPart in project InformationSystem by ObeoNetwork.
the class BindingReferenceBindingReferencePropertiesEditionComponent 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 BindingReference bindingReference = (BindingReference) elt;
final BindingReferencePropertiesEditionPart bindingReferencePart = (BindingReferencePropertiesEditionPart) editingPart;
// init values
if (isAccessible(EnvironmentViewsRepository.BindingReference.Properties.left)) {
bindingReferencePart.initLeft(EEFUtils.choiceOfValues(bindingReference, EnvironmentPackage.eINSTANCE.getBindingReference_Left()), bindingReference.getLeft());
}
if (isAccessible(EnvironmentViewsRepository.BindingReference.Properties.right)) {
bindingReferencePart.initRight(EEFUtils.choiceOfValues(bindingReference, EnvironmentPackage.eINSTANCE.getBindingReference_Right()), bindingReference.getRight());
}
if (isAccessible(EnvironmentViewsRepository.BindingReference.Properties.description))
bindingReferencePart.setDescription(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, bindingReference.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