/** * This adds a property descriptor for the Local feature. <!-- begin-user-doc --> <!-- * end-user-doc --> */ protected void addLocalPropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), CommonEditResourceHandler.getString("_UI_EJBLocalRef_local_feature"), //$NON-NLS-1$ CommonEditResourceHandler.getString("_UI_EJBLocalRef_local_feature_desc"), //$NON-NLS-1$ CommonPackage.eINSTANCE.getEJBLocalRef_Local(), false)); }
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; }
private static Translator createEJBRefTranslator13(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, new Translator(DESCRIPTION, COMMON_PKG.getEjbRef_Description()), EJB_REF_NAME_TRANSLATOR, EJB_REF_TYPE_TRANSLATOR, new Translator(homeTag, homeFeature), new Translator(remoteTag, remoteFeature), EJB_LINK_TRANSLATOR }); return result; }