protected ApplicationFactory getApplicationFactory() { return ((ApplicationPackage) EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI)).getApplicationFactory(); }
/** * This specifies how to implement {@link #getChildren}and {@link AddCommand}and * {@link RemoveCommand}support in {@link #createCommand}. */ public Collection getChildrenReferences(Object object) { ApplicationPackage pkg = ApplicationPackage.eINSTANCE; Collection result = new ArrayList(); result.add(pkg.getApplication_SecurityRoles()); result.add(pkg.getApplication_Modules()); return result; }
/** * Get the one application factory. */ public ApplicationFactory getApplicationFactory() { return (ApplicationFactory) getApplicationPackage().getEFactoryInstance(); }
/** * @return */ private static Translator[] createWebModuleTranslators() { return new Translator[] { IDTranslator.INSTANCE, new Translator(WEB + "/" + WEB_URI, APPLICATION_PKG.getModule_Uri()), //$NON-NLS-1$ new Translator(WEB + "/" + CONTEXT_ROOT, APPLICATION_PKG.getWebModule_ContextRoot()), //$NON-NLS-1$ ALT_DD_TRANSLATOR, // CommonTranslators.createDeploymentExtensionTranslator(APPLICATION_PKG.getModule_Extensions()) }; }
webModuleEClass.getESuperTypes().add(theApplicationPackage_1.getModule()); javaClientModuleEClass.getESuperTypes().add(theApplicationPackage_1.getModule()); ejbModuleEClass.getESuperTypes().add(theApplicationPackage_1.getModule()); connectorModuleEClass.getESuperTypes().add(theApplicationPackage_1.getModule()); initEAttribute(getApplication_Version(), ecorePackage.getEString(), "version", null, 0, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getApplication_SecurityRoles(), theCommonPackage.getSecurityRole(), null, "securityRoles", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getApplication_Modules(), theApplicationPackage_1.getModule(), theApplicationPackage_1.getModule_Application(), "modules", null, 1, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getModule_Application(), theApplicationPackage_1.getApplication(), theApplicationPackage_1.getApplication_Modules(), "application", null, 0, 1, Module.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
/** * This returns the property descriptors for the adapted class. */ public List getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); ApplicationPackage pkg = ApplicationPackage.eINSTANCE; // This is for the uri feature. // itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), ApplicationProvidersResourceHandler.getString("Uri_UI_"), //$NON-NLS-1$ ApplicationProvidersResourceHandler.getString("The_uri_property_UI_"), //$NON-NLS-1$ pkg.getModule_Uri())); // This is for the altDD feature. // itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), ApplicationProvidersResourceHandler.getString("AltDD_UI_"), //$NON-NLS-1$ ApplicationProvidersResourceHandler.getString("The_altDD_property_UI_"), //$NON-NLS-1$ pkg.getModule_AltDD(), false)); // This is for the application feature. // itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), ApplicationProvidersResourceHandler.getString("Application_UI_"), //$NON-NLS-1$ ApplicationProvidersResourceHandler.getString("The_application_property_UI_"), //$NON-NLS-1$ pkg.getModule_Application(), false)); } return itemPropertyDescriptors; }
protected Translator[] create14Children() { return new Translator[] { IDTranslator.INSTANCE, new Translator(VERSION, APPLICATION_PKG.getApplication_Version(), DOM_ATTRIBUTE), new ConstantAttributeTranslator(XML_NS, J2EE_NS_URL), new ConstantAttributeTranslator(XML_NS_XSI, XSI_NS_URL), new ConstantAttributeTranslator(XSI_SCHEMA_LOCATION, J2EE_NS_URL+' '+APPLICATION_SCHEMA_LOC_1_4), CommonTranslators.DESCRIPTIONS_TRANSLATOR, CommonTranslators.DISPLAYNAMES_TRANSLATOR, CommonTranslators.ICONS_TRANSLATOR, new ModuleTranslator(), CommonTranslators.createSecurityRoleTranslator14(APPLICATION_PKG.getApplication_SecurityRoles()), }; } }
/** * @param domNameAndPath * @param eClass */ public ModuleTranslator() { super(MODULE, APPLICATION_PKG.getApplication_Modules()); addReadAheadHelper(new ReadAheadHelper(MODULE, new String[] { EJB, JAVA, WEB, CONNECTOR }, null)); }
/** * @return */ private static Translator[] createEJBModuleTranslators() { return new Translator[] { IDTranslator.INSTANCE, new Translator(EJB, APPLICATION_PKG.getModule_Uri()), ALT_DD_TRANSLATOR, // CommonTranslators.createDeploymentExtensionTranslator(APPLICATION_PKG.getModule_Extensions()) }; }
private static Translator createAltDDTranslator() { return new Translator(ALT_DD, ApplicationPackage.eINSTANCE.getModule_AltDD()); }
/** * This adds a property descriptor for the Context Root feature. <!-- begin-user-doc --> <!-- * end-user-doc --> * * @generated */ protected void addContextRootPropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WebModule_contextRoot_feature"), //$NON-NLS-1$ getString("_UI_PropertyDescriptor_description", "_UI_WebModule_contextRoot_feature", "_UI_WebModule_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ ApplicationPackage.eINSTANCE.getWebModule_ContextRoot(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
/** * This adds a property descriptor for the Version feature. <!-- begin-user-doc --> <!-- * end-user-doc --> * * @generated */ protected void addVersionPropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_Application_version_feature"), //$NON-NLS-1$ getString("_UI_PropertyDescriptor_description", "_UI_Application_version_feature", "_UI_Application_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ ApplicationPackage.eINSTANCE.getApplication_Version(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
protected Translator[] create13Children() { return new Translator[] { IDTranslator.INSTANCE, new Translator(ICON+"/"+SMALL_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), //$NON-NLS-1$ new Translator(ICON+"/"+LARGE_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), //$NON-NLS-1$ new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), new ModuleTranslator(), CommonTranslators.createSecurityRoleTranslator13(APPLICATION_PKG.getApplication_SecurityRoles()), }; }
/** * @see Adapter#notifyChanged(new ENotificationImpl((InternalEObject)Notifier, * int,(EStructuralFeature) EObject, Object, Object, int)) * @deprecated */ public void notifyChanged(Notification notification) { switch (notification.getFeatureID(Application.class)) { case ApplicationPackage.APPLICATION__MODULES : break; default : super.notifyChanged(notification); } if (notification.getEventType() == Notification.REMOVING_ADAPTER && notification.getOldValue() == this) children.remove(notification.getNotifier()); else if (notification.getFeature() == ApplicationFactoryImpl.getPackage().getApplication_Modules()) modulesChanged((Application) notification.getNotifier(), notification.getEventType(), notification.getOldValue(), notification.getNewValue(), notification.getPosition()); }
/** * @return */ private static Translator[] createJavaModuleTranslators() { return new Translator[] { IDTranslator.INSTANCE, new Translator(JAVA, APPLICATION_PKG.getModule_Uri()), ALT_DD_TRANSLATOR, // CommonTranslators.createDeploymentExtensionTranslator(APPLICATION_PKG.getModule_Extensions()) }; }
/** * This adds a property descriptor for the Alt DD feature. <!-- begin-user-doc --> <!-- * end-user-doc --> * * @generated */ protected void addAltDDPropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_Module_altDD_feature"), //$NON-NLS-1$ getString("_UI_PropertyDescriptor_description", "_UI_Module_altDD_feature", "_UI_Module_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ ApplicationPackage.eINSTANCE.getModule_AltDD(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
/** * This returns the property descriptors for the adapted class. */ public List getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); ApplicationPackage pkg = ApplicationPackage.eINSTANCE; // This is for the contextRoot feature. // itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), ApplicationProvidersResourceHandler.getString("ContextRoot_UI_"), //$NON-NLS-1$ ApplicationProvidersResourceHandler.getString("The_contextRoot_property_UI_"), //$NON-NLS-1$ pkg.getWebModule_ContextRoot(), false)); } return itemPropertyDescriptors; }
/** * 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(ApplicationPackage.eINSTANCE.getApplication_SecurityRoles(), CommonFactory.eINSTANCE.createSecurityRole())); newChildDescriptors.add(createChildParameter(ApplicationPackage.eINSTANCE.getApplication_Modules(), ApplicationFactory.eINSTANCE.createModule())); newChildDescriptors.add(createChildParameter(ApplicationPackage.eINSTANCE.getApplication_Modules(), ApplicationFactory.eINSTANCE.createWebModule())); newChildDescriptors.add(createChildParameter(ApplicationPackage.eINSTANCE.getApplication_Modules(), ApplicationFactory.eINSTANCE.createJavaClientModule())); newChildDescriptors.add(createChildParameter(ApplicationPackage.eINSTANCE.getApplication_Modules(), ApplicationFactory.eINSTANCE.createEjbModule())); newChildDescriptors.add(createChildParameter(ApplicationPackage.eINSTANCE.getApplication_Modules(), ApplicationFactory.eINSTANCE.createConnectorModule())); }
/** * <p> * Method used for adding a j2ee project to an ear project; subclasses must override to create a * new instance of the correct kind of Module * </p> */ public Module createNewModule() { if(isBinary()){ throwAttemptedBinaryEditModelAccess(); } return ((ApplicationPackage) EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI)).getApplicationFactory().createJavaClientModule(); }
/** * @return */ private static Translator[] createConnectorModuleTranslators() { return new Translator[] { IDTranslator.INSTANCE, new Translator(CONNECTOR, APPLICATION_PKG.getModule_Uri()), ALT_DD_TRANSLATOR, // CommonTranslators.createDeploymentExtensionTranslator(APPLICATION_PKG.getModule_Extensions()) }; }