/** * @param newDisplayName */ protected void internalSetDisplayNameInList(String newDisplayName) { DisplayName newValue = null; if(getDisplayNames().size() > 0) { newValue = (DisplayName) getDisplayNames().get(0); newValue.setValue(newDisplayName); } else { newValue = CommonFactory.eINSTANCE.createDisplayName(); newValue.setValue(newDisplayName); getDisplayNames().add(newValue); } }
/** * 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())); }
DisplayName newDisplayName = factory.createDisplayName(); if (setLang)
DisplayName newDisplayName = factory.createDisplayName(); if (setLang)