/** * This specifies how to implement {@link #getChildren}and * {@link org.eclipse.emf.edit.command.AddCommand}and * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ public Collection getChildrenReferences(Object object) { if (childrenReferences == null) { super.getChildrenReferences(object); childrenReferences.add(CommonPackage.eINSTANCE.getEjbRef_Descriptions()); } return childrenReferences; }
/** * 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.getEjbRef_Descriptions(), CommonFactory.eINSTANCE.createDescription())); newChildDescriptors.add(createChildParameter(CommonPackage.eINSTANCE.getEjbRef_Descriptions(), WscommonFactory.eINSTANCE.createDescriptionType())); }
private static Translator createEJBRefTranslator14(EStructuralFeature feature, boolean local) { String nodeName = local ? EJB_LOCAL_REF : EJB_REF; String homeTag = local ? LOCAL_HOME : HOME; String remoteTag = local ? LOCAL : REMOTE; EStructuralFeature homeFeature = local ? COMMON_PKG.getEJBLocalRef_LocalHome() : COMMON_PKG.getEjbRef_Home(); EStructuralFeature remoteFeature = local ? COMMON_PKG.getEJBLocalRef_Local() : COMMON_PKG.getEjbRef_Remote(); GenericTranslator result = new GenericTranslator(nodeName, feature); result.setChildren(new Translator[] { IDTranslator.INSTANCE, createDescriptionTranslator(COMMON_PKG.getEjbRef_Descriptions()), EJB_REF_NAME_TRANSLATOR, EJB_REF_TYPE_TRANSLATOR, new Translator(homeTag, homeFeature), new Translator(remoteTag, remoteFeature), EJB_LINK_TRANSLATOR, // createDeploymentExtensionTranslator(COMMON_PKG.getEjbRef_Extensions()) }); return result; }