Search in sources :

Example 1 with DestroyParticipantMessagePropertiesEditionPart

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

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

Aggregations

DestroyParticipantMessage (org.obeonetwork.dsl.interaction.DestroyParticipantMessage)1 DestroyParticipantMessagePropertiesEditionPart (org.obeonetwork.dsl.interaction.parts.DestroyParticipantMessagePropertiesEditionPart)1