Search in sources :

Example 1 with OperandPropertiesEditionPart

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

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

Aggregations

Operand (org.obeonetwork.dsl.interaction.Operand)1 OperandPropertiesEditionPart (org.obeonetwork.dsl.interaction.parts.OperandPropertiesEditionPart)1