Search in sources :

Example 1 with SystemPropertiesEditionPart

use of org.obeonetwork.dsl.soa.parts.SystemPropertiesEditionPart in project InformationSystem by ObeoNetwork.

the class SystemSystemPropertiesEditionComponent 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 System system = (System) elt;
        final SystemPropertiesEditionPart systemPart = (SystemPropertiesEditionPart) editingPart;
        // init values
        if (isAccessible(SoaViewsRepository.System.Properties.name))
            systemPart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, system.getName()));
        if (isAccessible(SoaViewsRepository.System.Properties.description))
            systemPart.setDescription(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, system.getDescription()));
    // init filters
    // init values for referenced views
    // init filters for referenced views
    }
    setInitializing(false);
}
Also used : System(org.obeonetwork.dsl.soa.System) SystemPropertiesEditionPart(org.obeonetwork.dsl.soa.parts.SystemPropertiesEditionPart)

Aggregations

System (org.obeonetwork.dsl.soa.System)1 SystemPropertiesEditionPart (org.obeonetwork.dsl.soa.parts.SystemPropertiesEditionPart)1