Search in sources :

Example 1 with InteractionPropertiesEditionPart

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

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

Aggregations

Interaction (org.obeonetwork.dsl.interaction.Interaction)1 InteractionPropertiesEditionPart (org.obeonetwork.dsl.interaction.parts.InteractionPropertiesEditionPart)1