public EObject createEMFObject(String nodeName, String readAheadName) { CommonFactory fact = CommonFactory.eINSTANCE; if (RUN_AS.equals(readAheadName)) { RunAsSpecifiedIdentity result = fact.createRunAsSpecifiedIdentity(); result.setIdentity(fact.createIdentity()); return result; } else if (USE_CALLER_IDENTITY.equals(readAheadName)) return fact.createUseCallerIdentity(); else return 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(CommonPackage.eINSTANCE.getRunAsSpecifiedIdentity_Identity(), CommonFactory.eINSTANCE.createIdentity())); }