Search in sources :

Example 1 with TasksGroupPropertiesEditionPart

use of org.obeonetwork.graal.parts.TasksGroupPropertiesEditionPart in project InformationSystem by ObeoNetwork.

the class TasksGroupTasksGroupPropertiesEditionComponent 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 TasksGroup tasksGroup = (TasksGroup) elt;
        final TasksGroupPropertiesEditionPart tasksGroupPart = (TasksGroupPropertiesEditionPart) editingPart;
        // init values
        if (isAccessible(GraalViewsRepository.TasksGroup.Properties.description))
            tasksGroupPart.setDescription(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, tasksGroup.getDescription()));
        if (isAccessible(GraalViewsRepository.TasksGroup.Properties.id))
            tasksGroupPart.setId(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, tasksGroup.getId()));
        if (isAccessible(GraalViewsRepository.TasksGroup.Properties.name))
            tasksGroupPart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, tasksGroup.getName()));
    // init filters
    // init values for referenced views
    // init filters for referenced views
    }
    setInitializing(false);
}
Also used : TasksGroup(org.obeonetwork.graal.TasksGroup) TasksGroupPropertiesEditionPart(org.obeonetwork.graal.parts.TasksGroupPropertiesEditionPart)

Aggregations

TasksGroup (org.obeonetwork.graal.TasksGroup)1 TasksGroupPropertiesEditionPart (org.obeonetwork.graal.parts.TasksGroupPropertiesEditionPart)1