/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { ConsistencyPropertiesEditionPart basePart = (ConsistencyPropertiesEditionPart) editingPart; if (SACMPackage.eINSTANCE.getModelElement_Id().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(EvidenceViewsRepository.Consistency.Properties.id)) { if (msg.getNewValue() != null) { basePart.setId(EcoreUtil.convertToString(SACMPackage.Literals.STRING, msg.getNewValue())); } else { basePart.setId(""); } } if (EvidencePackage.eINSTANCE.getEvidenceElement_Timing().equals(msg.getFeature()) && isAccessible(EvidenceViewsRepository.Consistency.Properties.timing)) basePart.updateTiming(); if (EvidencePackage.eINSTANCE.getEvidenceElement_Custody().equals(msg.getFeature()) && isAccessible(EvidenceViewsRepository.Consistency.Properties.custody)) basePart.updateCustody(); if (EvidencePackage.eINSTANCE.getEvidenceElement_Provenance().equals(msg.getFeature()) && isAccessible(EvidenceViewsRepository.Consistency.Properties.provenance)) basePart.updateProvenance(); if (EvidencePackage.eINSTANCE.getEvidenceElement_Event().equals(msg.getFeature()) && isAccessible(EvidenceViewsRepository.Consistency.Properties.event)) basePart.updateEvent(); if (EvidencePackage.eINSTANCE.getConsistency_Value().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && isAccessible(EvidenceViewsRepository.Consistency.Properties.value)) basePart.setValue((ConsistencyLevel) msg.getNewValue()); } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { CommandPropertiesEditionPart basePart = (CommandPropertiesEditionPart) editingPart; if (StatemachinePackage.eINSTANCE.getCommand_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(StatemachineViewsRepository.Command.Properties.name)) { if (msg.getNewValue() != null) { basePart.setName( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { basePart.setName(""); } } if (StatemachinePackage.eINSTANCE.getCommand_Code().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(StatemachineViewsRepository.Command.Properties.code)) { if (msg.getNewValue() != null) { basePart.setCode( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { basePart.setCode(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { NamespacePropertiesEditionPart namespacePart = (NamespacePropertiesEditionPart) editingPart; if (EnvironmentPackage.eINSTANCE.getNamespace_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && namespacePart != null && isAccessible(EnvironmentViewsRepository.Namespace.Properties.name)) { if (msg.getNewValue() != null) { namespacePart.setName( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { namespacePart.setName(""); } } if (EnvironmentPackage.eINSTANCE.getObeoDSMObject_Description().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && namespacePart != null && isAccessible(EnvironmentViewsRepository.Namespace.Properties.description)) { if (msg.getNewValue() != null) { namespacePart.setDescription( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { namespacePart.setDescription(""); } } } }
/** * {@inheritDoc} * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { ArtifactIdentifierPropertiesEditionPart basePart = (ArtifactIdentifierPropertiesEditionPart)editingPart; if (ScoPackage.eINSTANCE.getArtifactIdentifier_ResourceName().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(ScoViewsRepository.ArtifactIdentifier.Properties.resourceName)) { if (msg.getNewValue() != null) { basePart.setResourceName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { basePart.setResourceName(""); } } if (ScoPackage.eINSTANCE.getArtifactIdentifier_BaselinedLineCount().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(ScoViewsRepository.ArtifactIdentifier.Properties.baselinedLineCount)) { if (msg.getNewValue() != null) { basePart.setBaselinedLineCount(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue())); } else { basePart.setBaselinedLineCount(""); } } if (ScoPackage.eINSTANCE.getArtifactIdentifier_CurrentLineCount().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(ScoViewsRepository.ArtifactIdentifier.Properties.currentLineCount)) { if (msg.getNewValue() != null) { basePart.setCurrentLineCount(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue())); } else { basePart.setCurrentLineCount(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { DomainClassPropertiesEditionPart domainClassPart = (DomainClassPropertiesEditionPart) editingPart; if (EnvironmentPackage.eINSTANCE.getType_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && domainClassPart != null && isAccessible(GraalViewsRepository.DomainClass.Properties.name)) { if (msg.getNewValue() != null) { domainClassPart.setName( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { domainClassPart.setName(""); } } if (EnvironmentPackage.eINSTANCE.getStructuredType_Supertype().equals(msg.getFeature()) && domainClassPart != null && isAccessible(GraalViewsRepository.DomainClass.Properties.superType)) domainClassPart.setSuperType((EObject) msg.getNewValue()); if (EnvironmentPackage.eINSTANCE.getObeoDSMObject_Description().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && domainClassPart != null && isAccessible(GraalViewsRepository.DomainClass.Properties.description)) { if (msg.getNewValue() != null) { domainClassPart.setDescription( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { domainClassPart.setDescription(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { FlowEventPropertiesEditionPart flowEventPart = (FlowEventPropertiesEditionPart) editingPart; if (EnvironmentPackage.eINSTANCE.getObeoDSMObject_Description().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && flowEventPart != null && isAccessible(FlowViewsRepository.FlowEvent.Properties.description)) { if (msg.getNewValue() != null) { flowEventPart.setDescription( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { flowEventPart.setDescription(""); } } if (CinematicPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && flowEventPart != null && isAccessible(FlowViewsRepository.FlowEvent.Properties.name)) { if (msg.getNewValue() != null) { flowEventPart.setName( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { flowEventPart.setName(""); } } if (FlowPackage.eINSTANCE.getFlowEvent_Binds().equals(msg.getFeature()) && isAccessible(FlowViewsRepository.FlowEvent.Properties.binds)) flowEventPart.updateBinds(); } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { ReferencePropertiesEditionPart referencePart = (ReferencePropertiesEditionPart) editingPart; if (EnvironmentPackage.eINSTANCE.getProperty_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && referencePart != null && isAccessible(EnvironmentViewsRepository.Reference.Properties.name)) { if (msg.getNewValue() != null) { referencePart.setName( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { referencePart.setName(""); } } if (EnvironmentPackage.eINSTANCE.getReference_ReferencedType().equals(msg.getFeature()) && referencePart != null && isAccessible(EnvironmentViewsRepository.Reference.Properties.referencedType)) referencePart.setReferencedType((EObject) msg.getNewValue()); if (EnvironmentPackage.eINSTANCE.getProperty_Multiplicity().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && isAccessible(EnvironmentViewsRepository.Reference.Properties.multiplicity)) referencePart.setMultiplicity((MultiplicityKind) msg.getNewValue()); if (EnvironmentPackage.eINSTANCE.getReference_IsComposite().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && referencePart != null && isAccessible(EnvironmentViewsRepository.Reference.Properties.isComposite)) referencePart.setIsComposite((Boolean) msg.getNewValue()); if (EnvironmentPackage.eINSTANCE.getReference_Navigable().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && referencePart != null && isAccessible(EnvironmentViewsRepository.Reference.Properties.navigable)) referencePart.setNavigable((Boolean) msg.getNewValue()); if (EnvironmentPackage.eINSTANCE.getReference_OppositeOf().equals(msg.getFeature()) && referencePart != null && isAccessible(EnvironmentViewsRepository.Reference.Properties.oppositeOf)) referencePart.setOppositeOf((EObject) msg.getNewValue()); if (EnvironmentPackage.eINSTANCE.getProperty_IsIdentifier().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && referencePart != null && isAccessible(EnvironmentViewsRepository.Reference.Properties.identifier)) referencePart.setIdentifier((Boolean) msg.getNewValue()); if (EnvironmentPackage.eINSTANCE.getObeoDSMObject_Description().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && referencePart != null && isAccessible(EnvironmentViewsRepository.Reference.Properties.description)) { if (msg.getNewValue() != null) { referencePart.setDescription( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { referencePart.setDescription(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { NotesPropertiesEditionPart notesPart = (NotesPropertiesEditionPart) editingPart; if (SACMPackage.eINSTANCE.getModelElement_TaggedValue().equals(msg.getFeature()) && isAccessible(EvidenceViewsRepository.Notes.Properties.taggedValue)) notesPart.updateTaggedValue(); if (SACMPackage.eINSTANCE.getModelElement_Annotation().equals(msg.getFeature()) && isAccessible(EvidenceViewsRepository.Notes.Properties.annotation)) notesPart.updateAnnotation(); } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { SkillPropertiesEditionPart basePart = (SkillPropertiesEditionPart) editingPart; if (EefPrimerPackage.eINSTANCE.getSkill_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(EefprimerViewsRepository.Skill.Properties.name)) { if (msg.getNewValue() != null) { basePart.setName( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { basePart.setName(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { DatetimePropertiesEditionPart basePart = (DatetimePropertiesEditionPart) editingPart; if (SACMPackage.eINSTANCE.getDatetime_Datetime().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(SACMViewsRepository.Datetime.Properties.datetime_)) { if (msg.getNewValue() != null) { basePart.setDatetime( EcoreUtil.convertToString(SACMPackage.Literals.STRING, msg.getNewValue())); } else { basePart.setDatetime(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart) editingPart; if (UMLPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(UmlViewsRepository.General.name)) { if (msg.getNewValue() != null) { generalPart.setName( EcoreUtil.convertToString(TypesPackage.Literals.STRING, msg.getNewValue())); } else { generalPart.setName(""); } } if (UMLPackage.eINSTANCE.getNamedElement_Visibility().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && isAccessible(UmlViewsRepository.General.visibility)) generalPart.setVisibility((VisibilityKind) msg.getNewValue()); if (UMLPackage.eINSTANCE.getClassifier_IsAbstract().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(UmlViewsRepository.General.Qualifiers.abstract_)) generalPart.setAbstract_((Boolean) msg.getNewValue()); if (UMLPackage.eINSTANCE.getRedefinableElement_IsLeaf().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(UmlViewsRepository.General.Qualifiers.leaf)) generalPart.setLeaf((Boolean) msg.getNewValue()); if (UMLPackage.eINSTANCE.getClass_IsActive().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(UmlViewsRepository.General.Qualifiers.active)) generalPart.setActive((Boolean) msg.getNewValue()); if (UMLPackage.eINSTANCE.getBehavior_IsReentrant().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(UmlViewsRepository.General.Qualifiers.reentrant)) generalPart.setReentrant((Boolean) msg.getNewValue()); } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { DocumentationPropertiesEditionPart documentationPart = (DocumentationPropertiesEditionPart) editingPart; if (MappingPackage.eINSTANCE.getDocumentedElement_Documentation().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && documentationPart != null && isAccessible(MappingViewsRepository.Documentation.Documentation_.documentation__)) { if (msg.getNewValue() != null) { documentationPart.setDocumentation( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { documentationPart.setDocumentation(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart) editingPart; if (UMLPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(UmlViewsRepository.General.name)) { if (msg.getNewValue() != null) { generalPart.setName( EcoreUtil.convertToString(TypesPackage.Literals.STRING, msg.getNewValue())); } else { generalPart.setName(""); } } if (UMLPackage.eINSTANCE.getNamedElement_Visibility().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && isAccessible(UmlViewsRepository.General.visibility)) generalPart.setVisibility((VisibilityKind) msg.getNewValue()); if (UMLPackage.eINSTANCE.getClassifier_IsAbstract().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(UmlViewsRepository.General.Qualifiers.abstract_)) generalPart.setAbstract_((Boolean) msg.getNewValue()); if (UMLPackage.eINSTANCE.getRedefinableElement_IsLeaf().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(UmlViewsRepository.General.Qualifiers.leaf)) generalPart.setLeaf((Boolean) msg.getNewValue()); // FIXME INVALID CASE INTO template public liveUpdater(editionElement : // PropertiesEditionElement, view : View, pec : PropertiesEditionComponent) in // widgetControl.mtl module, with the values : icon, General, Stereotype. if (UMLPackage.eINSTANCE.getClass_IsActive().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(UmlViewsRepository.General.Qualifiers.active)) generalPart.setActive((Boolean) msg.getNewValue()); } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { BindingPropertiesEditionPart bindingPart = (BindingPropertiesEditionPart) editingPart; if (SoaPackage.eINSTANCE.getBinding_Technology().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && isAccessible(SoaViewsRepository.Binding.Properties.technology)) bindingPart.setTechnology((BindingKind) msg.getNewValue()); if (EnvironmentPackage.eINSTANCE.getObeoDSMObject_Description().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && bindingPart != null && isAccessible(SoaViewsRepository.Binding.Properties.description)) { if (msg.getNewValue() != null) { bindingPart.setDescription( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { bindingPart.setDescription(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { ViewsRepositoryPropertiesEditionPart basePart = (ViewsRepositoryPropertiesEditionPart) editingPart; // FIXME INVALID CASE INTO template public liveUpdater(editionElement : // PropertiesEditionElement, view : View, pec : PropertiesEditionComponent) in // widgetControl.mtl module, with the values : RepositoryKind, ViewsRepository, // ViewsRepository. if (ViewsPackage.eINSTANCE.getViewsRepository_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(ViewsViewsRepository.ViewsRepository.Properties.name)) { if (msg.getNewValue() != null) { basePart.setName( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { basePart.setName(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { MeansThatPropertiesEditionPart basePart = (MeansThatPropertiesEditionPart) editingPart; if (SACMPackage.eINSTANCE.getModelElement_Id().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(EvidenceViewsRepository.MeansThat.Properties.id)) { if (msg.getNewValue() != null) { basePart.setId(EcoreUtil.convertToString(SACMPackage.Literals.STRING, msg.getNewValue())); } else { basePart.setId(""); } } if (EvidencePackage.eINSTANCE.getEvidenceElement_Timing().equals(msg.getFeature()) && isAccessible(EvidenceViewsRepository.MeansThat.Properties.timing)) basePart.updateTiming(); if (EvidencePackage.eINSTANCE.getEvidenceElement_Custody().equals(msg.getFeature()) && isAccessible(EvidenceViewsRepository.MeansThat.Properties.custody)) basePart.updateCustody(); if (EvidencePackage.eINSTANCE.getEvidenceElement_Provenance().equals(msg.getFeature()) && isAccessible(EvidenceViewsRepository.MeansThat.Properties.provenance)) basePart.updateProvenance(); if (EvidencePackage.eINSTANCE.getEvidenceElement_Event().equals(msg.getFeature()) && isAccessible(EvidenceViewsRepository.MeansThat.Properties.event)) basePart.updateEvent(); if (EvidencePackage.eINSTANCE.getEvidenceEvaluation_Attribute().equals(msg.getFeature()) && isAccessible(EvidenceViewsRepository.MeansThat.Properties.attribute)) basePart.updateAttribute(); if (EvidencePackage.eINSTANCE.getEvidenceInterpretation_Subject().equals(msg.getFeature()) && basePart != null && isAccessible(EvidenceViewsRepository.MeansThat.Properties.subject)) basePart.setSubject((EObject) msg.getNewValue()); if (EvidencePackage.eINSTANCE.getMeansThat_Meaning().equals(msg.getFeature()) && basePart != null && isAccessible(EvidenceViewsRepository.MeansThat.Properties.meaning)) basePart.setMeaning((EObject) msg.getNewValue()); } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { ServicePropertiesEditionPart servicePart = (ServicePropertiesEditionPart) editingPart; if (SoaPackage.eINSTANCE.getService_Synchronization().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && isAccessible(SoaViewsRepository.Service.Properties.synchronization)) servicePart.setSynchronization((SynchronizationKind) msg.getNewValue()); if (SoaPackage.eINSTANCE.getService_Kind().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && isAccessible(SoaViewsRepository.Service.Properties.kind)) servicePart.setKind((InterfaceKind) msg.getNewValue()); if (SoaPackage.eINSTANCE.getService_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && servicePart != null && isAccessible(SoaViewsRepository.Service.Properties.name)) { if (msg.getNewValue() != null) { servicePart.setName( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { servicePart.setName(""); } } if (EnvironmentPackage.eINSTANCE.getObeoDSMObject_Description().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && servicePart != null && isAccessible(SoaViewsRepository.Service.Properties.description)) { if (msg.getNewValue() != null) { servicePart.setDescription( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { servicePart.setDescription(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ public void updatePart(Notification msg) { super.updatePart(msg); if (editingPart.isVisible()) { SequencePropertiesEditionPart sequencePart = (SequencePropertiesEditionPart) editingPart; if (DatabasePackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && sequencePart != null && isAccessible(DatabaseViewsRepository.Sequence.Properties.name)) { if (msg.getNewValue() != null) { sequencePart.setName( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { sequencePart.setName(""); } } if (DatabasePackage.eINSTANCE.getSequence_Start().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && sequencePart != null && isAccessible(DatabaseViewsRepository.Sequence.Properties.StartIncrement.start)) { if (msg.getNewValue() != null) { sequencePart.setStart( EcoreUtil.convertToString(EcorePackage.Literals.EINTEGER_OBJECT, msg.getNewValue())); } else { sequencePart.setStart(""); } } if (DatabasePackage.eINSTANCE.getSequence_Increment().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && sequencePart != null && isAccessible(DatabaseViewsRepository.Sequence.Properties.StartIncrement.increment)) { if (msg.getNewValue() != null) { sequencePart.setIncrement( EcoreUtil.convertToString(EcorePackage.Literals.EINTEGER_OBJECT, msg.getNewValue())); } else { sequencePart.setIncrement(""); } } if (DatabasePackage.eINSTANCE.getSequence_MinValue().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && sequencePart != null && isAccessible(DatabaseViewsRepository.Sequence.Properties.MinMax.minValue)) { if (msg.getNewValue() != null) { sequencePart.setMinValue( EcoreUtil.convertToString(EcorePackage.Literals.EINTEGER_OBJECT, msg.getNewValue())); } else { sequencePart.setMinValue(""); } } if (DatabasePackage.eINSTANCE.getSequence_MaxValue().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && sequencePart != null && isAccessible(DatabaseViewsRepository.Sequence.Properties.MinMax.maxValue)) { if (msg.getNewValue() != null) { sequencePart.setMaxValue( EcoreUtil.convertToString(EcorePackage.Literals.EINTEGER_OBJECT, msg.getNewValue())); } else { sequencePart.setMaxValue(""); } } if (DatabasePackage.eINSTANCE.getSequence_Cycle().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && sequencePart != null && isAccessible(DatabaseViewsRepository.Sequence.Properties.CycleCacheSize.cycle)) sequencePart.setCycle((Boolean) msg.getNewValue()); if (DatabasePackage.eINSTANCE.getSequence_CacheSize().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && sequencePart != null && isAccessible(DatabaseViewsRepository.Sequence.Properties.CycleCacheSize.cacheSize)) { if (msg.getNewValue() != null) { sequencePart.setCacheSize( EcoreUtil.convertToString(EcorePackage.Literals.EINTEGER_OBJECT, msg.getNewValue())); } else { sequencePart.setCacheSize(""); } } if (DatabasePackage.eINSTANCE.getDatabaseElement_Comments().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && sequencePart != null && isAccessible(DatabaseViewsRepository.Sequence.Properties.comments)) { if (msg.getNewValue() != null) { sequencePart.setComments( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { sequencePart.setComments(""); } } } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification) */ @Override public void updatePart(final Notification msg) { super.updatePart(msg); if (this.editingPart.isVisible()) { final TaskPropertiesEditionPart taskPart = (TaskPropertiesEditionPart) this.editingPart; if (EnvironmentPackage.eINSTANCE.getObeoDSMObject_Description().equals(msg.getFeature()) && msg.getNotifier().equals(this.semanticObject) && (taskPart != null) && this.isAccessible(GraalViewsRepository.Task.Properties.description)) { if (msg.getNewValue() != null) { taskPart.setDescription( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { taskPart.setDescription(""); } } if (GraalPackage.eINSTANCE.getActivity_SubActivities().equals(msg.getFeature()) && this.isAccessible(GraalViewsRepository.Task.Properties.subActivities)) { taskPart.updateSubActivities(); } if (GraalPackage.eINSTANCE.getTask_Actors().equals(msg.getFeature()) && this.isAccessible(GraalViewsRepository.Task.Properties.actors)) { taskPart.updateActors(); } if (GraalPackage.eINSTANCE.getAbstractTask_Id().equals(msg.getFeature()) && msg.getNotifier().equals(this.semanticObject) && (taskPart != null) && this.isAccessible(GraalViewsRepository.Task.Properties.id)) { if (msg.getNewValue() != null) { taskPart.setId( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { taskPart.setId(""); } } if (GraalPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(this.semanticObject) && (taskPart != null) && this.isAccessible(GraalViewsRepository.Task.Properties.name)) { if (msg.getNewValue() != null) { taskPart.setName( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { taskPart.setName(""); } } if (GraalPackage.eINSTANCE.getTask_Uses().equals(msg.getFeature()) && this.isAccessible(GraalViewsRepository.Task.Properties.uses)) { taskPart.updateUses(); } if (GraalPackage.eINSTANCE.getTask_Preconditions().equals(msg.getFeature()) && msg.getNotifier().equals(this.semanticObject) && (taskPart != null) && this.isAccessible(GraalViewsRepository.Task.Properties.preconditions)) { if (msg.getNewValue() != null) { taskPart.setPreconditions( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { taskPart.setPreconditions(""); } } if (GraalPackage.eINSTANCE.getTask_Postconditions().equals(msg.getFeature()) && msg.getNotifier().equals(this.semanticObject) && (taskPart != null) && this.isAccessible(GraalViewsRepository.Task.Properties.postconditions)) { if (msg.getNewValue() != null) { taskPart.setPostconditions( EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue())); } else { taskPart.setPostconditions(""); } } } }