/** * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s * describing all of the children that can be created under this object. <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add(createChildParameter(CommonPackage.eINSTANCE.getDescriptionGroup_Icons(), CommonFactory.eINSTANCE.createIconType())); newChildDescriptors.add(createChildParameter(CommonPackage.eINSTANCE.getDescriptionGroup_DisplayNames(), CommonFactory.eINSTANCE.createDisplayName())); newChildDescriptors.add(createChildParameter(CommonPackage.eINSTANCE.getDescriptionGroup_DisplayNames(), WscommonFactory.eINSTANCE.createDisplayNameType())); newChildDescriptors.add(createChildParameter(CommonPackage.eINSTANCE.getDescriptionGroup_Descriptions(), CommonFactory.eINSTANCE.createDescription())); newChildDescriptors.add(createChildParameter(CommonPackage.eINSTANCE.getDescriptionGroup_Descriptions(), WscommonFactory.eINSTANCE.createDescriptionType())); }
public void notifyChanged(Notification msg) { if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_Icons() || msg.getFeature() == CommonPackage.eINSTANCE.getIconType_LargeIcon() || msg.getFeature() == CommonPackage.eINSTANCE.getIconType_SmallIcon()) { synchIcons(); return; } else if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_Descriptions() || msg.getFeature() == CommonPackage.eINSTANCE.getDescription_Value()) { synchDescription(); return; } else if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_DisplayNames() || msg.getFeature() == CommonPackage.eINSTANCE.getDisplayName_Value()) { synchDisplayName(); return; } }