/** * {@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 ViewsRepository viewsRepository = (ViewsRepository) elt; final ViewsRepositoryPropertiesEditionPart basePart = (ViewsRepositoryPropertiesEditionPart) editingPart; // init values // FIXME NO VALID CASE INTO template public updater(editionElement : PropertiesEditionElement, // view : View, pec : PropertiesEditionComponent) in widgetControl.mtl module, with the values // : RepositoryKind, ViewsRepository, ViewsRepository. if (isAccessible(ViewsViewsRepository.ViewsRepository.Properties.name)) basePart.setName( EEFConverterUtil.convertToString( EcorePackage.Literals.ESTRING, viewsRepository.getName())); // init filters // FIXME NO VALID CASE INTO template public filterUpdater(editionElement : // PropertiesEditionElement, view : View, pec : PropertiesEditionComponent) in // widgetControl.mtl module, with the values : RepositoryKind, ViewsRepository, // ViewsRepository. // init values for referenced views // init filters for referenced views } setInitializing(false); }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent) */ public void updateSemanticModel(final IPropertiesEditionEvent event) { ViewsRepository viewsRepository = (ViewsRepository) semanticObject; if (ViewsViewsRepository.ViewsRepository.Properties.repositoryKind == event.getAffectedEditor()) { // FIXME INVALID CASE you must override the template 'declareEObjectUpdater' for the case : // RepositoryKind, ViewsRepository, ViewsRepository. } if (ViewsViewsRepository.ViewsRepository.Properties.name == event.getAffectedEditor()) { viewsRepository.setName( (java.lang.String) EEFConverterUtil.createFromString( EcorePackage.Literals.ESTRING, (String) event.getNewValue())); } }