use of org.obeonetwork.dsl.environment.parts.BindingElementPropertiesEditionPart in project InformationSystem by ObeoNetwork.
the class BindingElementBindingElementPropertiesEditionComponent 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 BindingElement bindingElement = (BindingElement) elt;
final BindingElementPropertiesEditionPart bindingElementPart = (BindingElementPropertiesEditionPart) editingPart;
// init values
if (isAccessible(EnvironmentViewsRepository.BindingElement.Properties.boundElement)) {
bindingElementPart.initBoundElement(EEFUtils.choiceOfValues(bindingElement, EnvironmentPackage.eINSTANCE.getBindingElement_BoundElement()), bindingElement.getBoundElement());
}
if (isAccessible(EnvironmentViewsRepository.BindingElement.Properties.bindingExpression))
bindingElementPart.setBindingExpression(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, bindingElement.getBindingExpression()));
if (isAccessible(EnvironmentViewsRepository.BindingElement.Properties.description))
bindingElementPart.setDescription(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, bindingElement.getDescription()));
// init filters
// Start of user code for additional businessfilters for boundElement
// End of user code
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
Aggregations