Search in sources :

Example 1 with UserStoryPropertiesEditionPart

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

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

Aggregations

UserStory (org.obeonetwork.graal.UserStory)1 UserStoryPropertiesEditionPart (org.obeonetwork.graal.parts.UserStoryPropertiesEditionPart)1