Search in sources :

Example 1 with ExecutionPropertiesEditionPart

use of org.obeonetwork.dsl.interaction.parts.ExecutionPropertiesEditionPart in project InformationSystem by ObeoNetwork.

the class ExecutionExecutionPropertiesEditionComponent 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 Execution execution = (Execution) elt;
        final ExecutionPropertiesEditionPart executionPart = (ExecutionPropertiesEditionPart) editingPart;
        // init values
        if (isAccessible(InteractionViewsRepository.Execution.Properties.name))
            executionPart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, execution.getName()));
        if (isAccessible(InteractionViewsRepository.Execution.Properties.description))
            executionPart.setDescription(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, execution.getDescription()));
    // init filters
    // init values for referenced views
    // init filters for referenced views
    }
    setInitializing(false);
}
Also used : ExecutionPropertiesEditionPart(org.obeonetwork.dsl.interaction.parts.ExecutionPropertiesEditionPart) Execution(org.obeonetwork.dsl.interaction.Execution)

Aggregations

Execution (org.obeonetwork.dsl.interaction.Execution)1 ExecutionPropertiesEditionPart (org.obeonetwork.dsl.interaction.parts.ExecutionPropertiesEditionPart)1