Search in sources :

Example 1 with PersistencePropertiesEditionPart

use of org.obeonetwork.graal.parts.PersistencePropertiesEditionPart in project InformationSystem by ObeoNetwork.

the class DomainClassPersistencePropertiesEditionComponent 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 DomainClass domainClass = (DomainClass) elt;
        final PersistencePropertiesEditionPart persistencePart = (PersistencePropertiesEditionPart) editingPart;
        // init values
        if (isAccessible(GraalViewsRepository.Persistence.Properties.estimatedVolumetry)) {
            persistencePart.setEstimatedVolumetry(EEFConverterUtil.convertToString(EcorePackage.Literals.EINT, domainClass.getEstimatedVolumetry()));
        }
        if (isAccessible(GraalViewsRepository.Persistence.Properties.historized)) {
            persistencePart.setHistorized(domainClass.isHistorized());
        }
    // init filters
    // init values for referenced views
    // init filters for referenced views
    }
    setInitializing(false);
}
Also used : DomainClass(org.obeonetwork.graal.DomainClass) PersistencePropertiesEditionPart(org.obeonetwork.graal.parts.PersistencePropertiesEditionPart)

Aggregations

DomainClass (org.obeonetwork.graal.DomainClass)1 PersistencePropertiesEditionPart (org.obeonetwork.graal.parts.PersistencePropertiesEditionPart)1