/** * 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; }
/** * @param domNameAndPath * @param eClass */ public ModuleTranslator() { super(MODULE, APPLICATION_PKG.getApplication_Modules()); addReadAheadHelper(new ReadAheadHelper(MODULE, new String[] { EJB, JAVA, WEB, CONNECTOR }, null)); }
/** * 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())); }
initEAttribute(getModule_Uri(), ecorePackage.getEString(), "uri", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getModule_AltDD(), ecorePackage.getEString(), "altDD", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 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);
/** * @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()); }