/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent) * @generated */ public void updateSemanticModel(final IPropertiesEditionEvent event) { Stereotype stereotype = (Stereotype) semanticObject; if (UmlViewsRepository.General.name == event.getAffectedEditor()) { stereotype.setName( (java.lang.String) EEFConverterUtil.createFromString( TypesPackage.Literals.STRING, (String) event.getNewValue())); } if (UmlViewsRepository.General.visibility == event.getAffectedEditor()) { stereotype.setVisibility((VisibilityKind) event.getNewValue()); } if (UmlViewsRepository.General.Qualifiers.abstract_ == event.getAffectedEditor()) { stereotype.setIsAbstract((Boolean) event.getNewValue()); } if (UmlViewsRepository.General.Qualifiers.leaf == event.getAffectedEditor()) { stereotype.setIsLeaf((Boolean) event.getNewValue()); } if (UmlViewsRepository.General.icon == event.getAffectedEditor()) { // FIXME INVALID CASE you must override the template 'declareEObjectUpdater' for the case : // icon, General, Stereotype. } if (UmlViewsRepository.General.Qualifiers.active == event.getAffectedEditor()) { stereotype.setIsActive((Boolean) event.getNewValue()); } }
/** @generated */ public void init_Stereotype_2001(Stereotype instance) { try { Object value_0 = UMLOCLFactory.getExpression(1, UMLPackage.eINSTANCE.getStereotype(), null) .evaluate(instance); instance.setName((String) value_0); } catch (RuntimeException e) { UMLDiagramEditorPlugin.getInstance() .logError("Element initialization failed", e); // $NON-NLS-1$ } }