Search in sources :

Example 1 with ViewActionPropertiesEditionPart

use of org.obeonetwork.dsl.cinematic.view.parts.ViewActionPropertiesEditionPart in project InformationSystem by ObeoNetwork.

the class ViewActionViewActionPropertiesEditionComponent 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 ViewAction viewAction = (ViewAction) elt;
        final ViewActionPropertiesEditionPart viewActionPart = (ViewActionPropertiesEditionPart) editingPart;
        // init values
        if (isAccessible(ViewViewsRepository.ViewAction.Properties.description))
            viewActionPart.setDescription(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, viewAction.getDescription()));
        if (isAccessible(ViewViewsRepository.ViewAction.Properties.name))
            viewActionPart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, viewAction.getName()));
    // init filters
    // init values for referenced views
    // init filters for referenced views
    }
    setInitializing(false);
}
Also used : ViewAction(org.obeonetwork.dsl.cinematic.view.ViewAction) ViewActionPropertiesEditionPart(org.obeonetwork.dsl.cinematic.view.parts.ViewActionPropertiesEditionPart)

Aggregations

ViewAction (org.obeonetwork.dsl.cinematic.view.ViewAction)1 ViewActionPropertiesEditionPart (org.obeonetwork.dsl.cinematic.view.parts.ViewActionPropertiesEditionPart)1