/** * 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())); }
/** * @return */ public static Translator createIconTranslator() { GenericTranslator result = new GenericTranslator(ICON, COMMON_PKG.getDescriptionGroup_Icons()); result.setChildren(new Translator[] { new Translator(LANG, COMMON_PKG.getIconType_Lang(), Translator.DOM_ATTRIBUTE), IDTranslator.INSTANCE, new Translator(SMALL_ICON, COMMON_PKG.getIconType_SmallIcon()), new Translator(LARGE_ICON, COMMON_PKG.getIconType_LargeIcon()) }); return result; }
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; } }