use of org.obeonetwork.dsl.database.parts.ConstraintPropertiesEditionPart in project InformationSystem by ObeoNetwork.
the class ConstraintPropertiesEditionComponent 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 Constraint constraint = (Constraint) elt;
final ConstraintPropertiesEditionPart constraintPart = (ConstraintPropertiesEditionPart) editingPart;
// init values
if (isAccessible(DatabaseViewsRepository.Constraint.Properties.name))
constraintPart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, constraint.getName()));
if (isAccessible(DatabaseViewsRepository.Constraint.Properties.expression))
constraintPart.setExpression(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, constraint.getExpression()));
if (isAccessible(DatabaseViewsRepository.Constraint.Properties.comments))
constraintPart.setComments(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, constraint.getComments()));
// init filters
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
Aggregations