@SuppressWarnings("unchecked")
 protected void createEntryExitPoints(Diagram subdiagram) {
   TreeIterator<EObject> eAllContents = subdiagram.eAllContents();
   List<Edge> entryPointsToCreate = new ArrayList<Edge>();
   List<Edge> exitPointstoCreate = new ArrayList<Edge>();
   while (eAllContents.hasNext()) {
     EObject next = eAllContents.next();
     if (next instanceof View) {
       EList<Edge> targetEdges = ((View) next).getTargetEdges();
       for (Edge edge : targetEdges) {
         if (!EcoreUtil.isAncestor(subdiagram, edge.getSource())) entryPointsToCreate.add(edge);
       }
       EList<Edge> sourceEdges = ((View) next).getSourceEdges();
       for (Edge edge : sourceEdges) {
         if (!EcoreUtil.isAncestor(subdiagram, edge.getTarget())) exitPointstoCreate.add(edge);
       }
     }
   }
   for (Edge edge : entryPointsToCreate) {
     createEntryPoint(edge, subdiagram);
   }
   for (Edge edge : exitPointstoCreate) {
     createExitPoint(edge, subdiagram);
   }
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setBranch_BranchTransition(Branch newBranch_BranchTransition) {
   if (newBranch_BranchTransition != eInternalContainer()
       || (eContainerFeatureID()
               != Usagemodel_pc_avPackage.BRANCH_TRANSITION__BRANCH_BRANCH_TRANSITION
           && newBranch_BranchTransition != null)) {
     if (EcoreUtil.isAncestor(this, newBranch_BranchTransition))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newBranch_BranchTransition != null)
       msgs =
           ((InternalEObject) newBranch_BranchTransition)
               .eInverseAdd(
                   this,
                   Usagemodel_pc_avPackage.BRANCH__BRANCH_TRANSITIONS_BRANCH,
                   Branch.class,
                   msgs);
     msgs = basicSetBranch_BranchTransition(newBranch_BranchTransition, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             Usagemodel_pc_avPackage.BRANCH_TRANSITION__BRANCH_BRANCH_TRANSITION,
             newBranch_BranchTransition,
             newBranch_BranchTransition));
 }
  /**
   *
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated NOT
   */
  public void setApplication(LayersStackApplication newApplication) {
    if (newApplication != eInternalContainer()
        || (eContainerFeatureID() != LayersPackage.PROPERTY_SETTER_REGISTRY__APPLICATION
            && newApplication != null)) {
      if (EcoreUtil.isAncestor(this, newApplication))
        throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
      NotificationChain msgs = null;
      if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
      if (newApplication != null)
        msgs =
            ((InternalEObject) newApplication)
                .eInverseAdd(
                    this,
                    LayersPackage.LAYERS_STACK_APPLICATION__PROPERTY_SETTER_REGISTRY,
                    LayersStackApplication.class,
                    msgs);
      msgs = basicSetApplication(newApplication, msgs);
      if (msgs != null) msgs.dispatch();
    } else if (eNotificationRequired())
      eNotify(
          new ENotificationImpl(
              this,
              Notification.SET,
              LayersPackage.PROPERTY_SETTER_REGISTRY__APPLICATION,
              newApplication,
              newApplication));

    // update the list of PropertySetters
    if (newApplication != null) {
      List<Property> list = newApplication.getPropertyRegistry().getProperties();
      ((PropertyIndexedList<PropertySetter>) getPropertySetters()).setPropertyList(list);
    }
    ;
  }
Пример #4
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void setTab(Tab newTab) {
   if (newTab != eInternalContainer()
       || (eContainerFeatureID() != ContextsPackage.SECTION__TAB && newTab != null)) {
     if (EcoreUtil.isAncestor(this, newTab)) {
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     }
     NotificationChain msgs = null;
     if (eInternalContainer() != null) {
       msgs = eBasicRemoveFromContainer(msgs);
     }
     if (newTab != null) {
       msgs =
           ((InternalEObject) newTab)
               .eInverseAdd(this, ContextsPackage.TAB__SECTIONS, Tab.class, msgs);
     }
     msgs = basicSetTab(newTab, msgs);
     if (msgs != null) {
       msgs.dispatch();
     }
   } else if (eNotificationRequired()) {
     eNotify(
         new ENotificationImpl(
             this, Notification.SET, ContextsPackage.SECTION__TAB, newTab, newTab));
   }
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setAllocation_AllocationContext(Allocation newAllocation_AllocationContext) {
   if (newAllocation_AllocationContext != eInternalContainer()
       || (eContainerFeatureID()
               != Allocation_pcPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT
           && newAllocation_AllocationContext != null)) {
     if (EcoreUtil.isAncestor(this, newAllocation_AllocationContext))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newAllocation_AllocationContext != null)
       msgs =
           ((InternalEObject) newAllocation_AllocationContext)
               .eInverseAdd(
                   this,
                   Allocation_pcPackage.ALLOCATION__ALLOCATION_CONTEXTS_ALLOCATION,
                   Allocation.class,
                   msgs);
     msgs = basicSetAllocation_AllocationContext(newAllocation_AllocationContext, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             Allocation_pcPackage.ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT,
             newAllocation_AllocationContext,
             newAllocation_AllocationContext));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setResourceRepository__ResourceInterface(
     ResourceRepository newResourceRepository__ResourceInterface) {
   if (newResourceRepository__ResourceInterface != eInternalContainer()
       || (eContainerFeatureID()
               != Resourcetype_pc_avPackage
                   .RESOURCE_INTERFACE__RESOURCE_REPOSITORY_RESOURCE_INTERFACE
           && newResourceRepository__ResourceInterface != null)) {
     if (EcoreUtil.isAncestor(this, newResourceRepository__ResourceInterface))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newResourceRepository__ResourceInterface != null)
       msgs =
           ((InternalEObject) newResourceRepository__ResourceInterface)
               .eInverseAdd(
                   this,
                   Resourcetype_pc_avPackage
                       .RESOURCE_REPOSITORY__RESOURCE_INTERFACES_RESOURCE_REPOSITORY,
                   ResourceRepository.class,
                   msgs);
     msgs =
         basicSetResourceRepository__ResourceInterface(
             newResourceRepository__ResourceInterface, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             Resourcetype_pc_avPackage.RESOURCE_INTERFACE__RESOURCE_REPOSITORY_RESOURCE_INTERFACE,
             newResourceRepository__ResourceInterface,
             newResourceRepository__ResourceInterface));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void setOwningBinding(TemplateBinding newOwningBinding) {
   if (newOwningBinding != eInternalContainer()
       || (eContainerFeatureID() != PivotPackage.TEMPLATE_PARAMETER_SUBSTITUTION__OWNING_BINDING
           && newOwningBinding != null)) {
     if (EcoreUtil.isAncestor(this, newOwningBinding))
       throw new IllegalArgumentException(
           "Recursive containment not allowed for " + toString()); // $NON-NLS-1$
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newOwningBinding != null)
       msgs =
           ((InternalEObject) newOwningBinding)
               .eInverseAdd(
                   this,
                   PivotPackage.TEMPLATE_BINDING__OWNED_SUBSTITUTIONS,
                   TemplateBinding.class,
                   msgs);
     msgs = basicSetOwningBinding(newOwningBinding, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             PivotPackage.TEMPLATE_PARAMETER_SUBSTITUTION__OWNING_BINDING,
             newOwningBinding,
             newOwningBinding));
 }
Пример #8
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void setMbrick(MBrickletLCD20x4 newMbrick) {
   if (newMbrick != eInternalContainer()
       || (eContainerFeatureID() != ModelPackage.MLCD2_0X4_BUTTON__MBRICK && newMbrick != null)) {
     if (EcoreUtil.isAncestor(this, newMbrick)) {
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     }
     NotificationChain msgs = null;
     if (eInternalContainer() != null) {
       msgs = eBasicRemoveFromContainer(msgs);
     }
     if (newMbrick != null) {
       msgs =
           ((InternalEObject) newMbrick)
               .eInverseAdd(
                   this,
                   ModelPackage.MSUB_DEVICE_HOLDER__MSUBDEVICES,
                   MSubDeviceHolder.class,
                   msgs);
     }
     msgs = basicSetMbrick(newMbrick, msgs);
     if (msgs != null) {
       msgs.dispatch();
     }
   } else if (eNotificationRequired()) {
     eNotify(
         new ENotificationImpl(
             this, Notification.SET, ModelPackage.MLCD2_0X4_BUTTON__MBRICK, newMbrick, newMbrick));
   }
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setTemplateParameter(TemplateParameter newTemplateParameter) {
   if (newTemplateParameter != eInternalContainer()
       || (eContainerFeatureID() != SparqlasPackage.OBJECT_PROPERTY_VARIABLE__TEMPLATE_PARAMETER
           && newTemplateParameter != null)) {
     if (EcoreUtil.isAncestor(this, newTemplateParameter))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newTemplateParameter != null)
       msgs =
           ((InternalEObject) newTemplateParameter)
               .eInverseAdd(
                   this,
                   SparqlasPackage.TEMPLATE_PARAMETER__PARAMETERED_ELEMENT,
                   TemplateParameter.class,
                   msgs);
     msgs = basicSetTemplateParameter(newTemplateParameter, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             SparqlasPackage.OBJECT_PROPERTY_VARIABLE__TEMPLATE_PARAMETER,
             newTemplateParameter,
             newTemplateParameter));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setContainer(CompositeState newContainer) {
   if (newContainer != eInternalContainer()
       || (eContainerFeatureID() != SimplStateMachinePackage.STATE__CONTAINER
           && newContainer != null)) {
     if (EcoreUtil.isAncestor(this, newContainer))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newContainer != null)
       msgs =
           ((InternalEObject) newContainer)
               .eInverseAdd(
                   this,
                   SimplStateMachinePackage.COMPOSITE_STATE__STATES,
                   CompositeState.class,
                   msgs);
     msgs = basicSetContainer(newContainer, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             SimplStateMachinePackage.STATE__CONTAINER,
             newContainer,
             newContainer));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setOwner(ElementTypes newOwner) {
   if (newOwner != eInternalContainer()
       || (eContainerFeatureID() != DomaincontextcodegenPackage.ELEMENT_TYPE__OWNER
           && newOwner != null)) {
     if (EcoreUtil.isAncestor(this, newOwner))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newOwner != null)
       msgs =
           ((InternalEObject) newOwner)
               .eInverseAdd(
                   this,
                   DomaincontextcodegenPackage.ELEMENT_TYPES__TYPES,
                   ElementTypes.class,
                   msgs);
     msgs = basicSetOwner(newOwner, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             DomaincontextcodegenPackage.ELEMENT_TYPE__OWNER,
             newOwner,
             newOwner));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setAbstractBranchTransition_ResourceDemandingBehaviour(
     AbstractBranchTransition newAbstractBranchTransition_ResourceDemandingBehaviour) {
   if (newAbstractBranchTransition_ResourceDemandingBehaviour != eInternalContainer()
       || (eContainerFeatureID()
               != Seff_pcPackage
                   .RESOURCE_DEMANDING_BEHAVIOUR__ABSTRACT_BRANCH_TRANSITION_RESOURCE_DEMANDING_BEHAVIOUR
           && newAbstractBranchTransition_ResourceDemandingBehaviour != null)) {
     if (EcoreUtil.isAncestor(this, newAbstractBranchTransition_ResourceDemandingBehaviour))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newAbstractBranchTransition_ResourceDemandingBehaviour != null)
       msgs =
           ((InternalEObject) newAbstractBranchTransition_ResourceDemandingBehaviour)
               .eInverseAdd(
                   this,
                   Seff_pcPackage.ABSTRACT_BRANCH_TRANSITION__BRANCH_BEHAVIOUR_BRANCH_TRANSITION,
                   AbstractBranchTransition.class,
                   msgs);
     msgs =
         basicSetAbstractBranchTransition_ResourceDemandingBehaviour(
             newAbstractBranchTransition_ResourceDemandingBehaviour, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             Seff_pcPackage
                 .RESOURCE_DEMANDING_BEHAVIOUR__ABSTRACT_BRANCH_TRANSITION_RESOURCE_DEMANDING_BEHAVIOUR,
             newAbstractBranchTransition_ResourceDemandingBehaviour,
             newAbstractBranchTransition_ResourceDemandingBehaviour));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setSuperPackage(org.obeonetwork.dsl.scalamodel.Package newSuperPackage) {
   if (newSuperPackage != eInternalContainer()
       || (eContainerFeatureID() != ScalamodelPackage.PACKAGE__SUPER_PACKAGE
           && newSuperPackage != null)) {
     if (EcoreUtil.isAncestor(this, newSuperPackage))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newSuperPackage != null)
       msgs =
           ((InternalEObject) newSuperPackage)
               .eInverseAdd(
                   this,
                   ScalamodelPackage.PACKAGE__SUB_PACKAGES,
                   org.obeonetwork.dsl.scalamodel.Package.class,
                   msgs);
     msgs = basicSetSuperPackage(newSuperPackage, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ScalamodelPackage.PACKAGE__SUPER_PACKAGE,
             newSuperPackage,
             newSuperPackage));
 }
Пример #14
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setDeclarator(JvmTypeParameterDeclarator newDeclarator) {
   if (newDeclarator != eInternalContainer()
       || (eContainerFeatureID() != TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR
           && newDeclarator != null)) {
     if (EcoreUtil.isAncestor(this, newDeclarator))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newDeclarator != null)
       msgs =
           ((InternalEObject) newDeclarator)
               .eInverseAdd(
                   this,
                   TypesPackage.JVM_TYPE_PARAMETER_DECLARATOR__TYPE_PARAMETERS,
                   JvmTypeParameterDeclarator.class,
                   msgs);
     msgs = basicSetDeclarator(newDeclarator, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR,
             newDeclarator,
             newDeclarator));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void setBrickd(MBrickd newBrickd) {
   if (newBrickd != eInternalContainer()
       || (eContainerFeatureID() != ModelPackage.MBRICKLET_DUST_DETECTOR__BRICKD
           && newBrickd != null)) {
     if (EcoreUtil.isAncestor(this, newBrickd)) {
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     }
     NotificationChain msgs = null;
     if (eInternalContainer() != null) {
       msgs = eBasicRemoveFromContainer(msgs);
     }
     if (newBrickd != null) {
       msgs =
           ((InternalEObject) newBrickd)
               .eInverseAdd(this, ModelPackage.MBRICKD__MDEVICES, MBrickd.class, msgs);
     }
     msgs = basicSetBrickd(newBrickd, msgs);
     if (msgs != null) {
       msgs.dispatch();
     }
   } else if (eNotificationRequired()) {
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ModelPackage.MBRICKLET_DUST_DETECTOR__BRICKD,
             newBrickd,
             newBrickd));
   }
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setEventBObject(EventBObject newEventBObject) {
   if (newEventBObject != eInternalContainer()
       || (eContainerFeatureID() != CorePackage.ANNOTATION__EVENT_BOBJECT
           && newEventBObject != null)) {
     if (EcoreUtil.isAncestor(this, newEventBObject))
       throw new IllegalArgumentException(
           "Recursive containment not allowed for " + toString()); // $NON-NLS-1$
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newEventBObject != null)
       msgs =
           ((InternalEObject) newEventBObject)
               .eInverseAdd(
                   this, CorePackage.EVENT_BOBJECT__ANNOTATIONS, EventBObject.class, msgs);
     msgs = basicSetEventBObject(newEventBObject, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             CorePackage.ANNOTATION__EVENT_BOBJECT,
             newEventBObject,
             newEventBObject));
 }
Пример #17
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setSamStatusSchema(SAMStatusSchema newSamStatusSchema) {
   if (newSamStatusSchema != eInternalContainer()
       || (eContainerFeatureID()
               != Status_and_action_oldPackage.SAM_SCHEMA_VARIABLE__SAM_STATUS_SCHEMA
           && newSamStatusSchema != null)) {
     if (EcoreUtil.isAncestor(this, newSamStatusSchema))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newSamStatusSchema != null)
       msgs =
           ((InternalEObject) newSamStatusSchema)
               .eInverseAdd(
                   this,
                   Status_and_action_oldPackage.SAM_STATUS_SCHEMA__SAM_SCHEMA_VARIABLES,
                   SAMStatusSchema.class,
                   msgs);
     msgs = basicSetSamStatusSchema(newSamStatusSchema, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             Status_and_action_oldPackage.SAM_SCHEMA_VARIABLE__SAM_STATUS_SCHEMA,
             newSamStatusSchema,
             newSamStatusSchema));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setParent(TracedActivityEdgeInstance newParent) {
   if (newParent != eInternalContainer()
       || (eContainerFeatureID() != StatesPackage.ACTIVITY_EDGE_INSTANCE_SOURCE_VALUE__PARENT
           && newParent != null)) {
     if (EcoreUtil.isAncestor(this, newParent))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newParent != null)
       msgs =
           ((InternalEObject) newParent)
               .eInverseAdd(
                   this,
                   IntermediateActivitiesPackage.TRACED_ACTIVITY_EDGE_INSTANCE__SOURCE_SEQUENCE,
                   TracedActivityEdgeInstance.class,
                   msgs);
     msgs = basicSetParent(newParent, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             StatesPackage.ACTIVITY_EDGE_INSTANCE_SOURCE_VALUE__PARENT,
             newParent,
             newParent));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void setManager(ICompositeFormManager newManager) {
   if (newManager != eInternalContainer()
       || (eContainerFeatureID() != ICompositeFormPackage.COMPOSITE_FORM_DESCRIPTOR__MANAGER
           && newManager != null)) {
     if (EcoreUtil.isAncestor(this, newManager))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) {
       msgs = eBasicRemoveFromContainer(msgs);
     }
     if (newManager != null) {
       msgs =
           ((InternalEObject) newManager)
               .eInverseAdd(
                   this,
                   ICompositeFormPackage.COMPOSITE_FORM_MANAGER__FORMS,
                   ICompositeFormManager.class,
                   msgs);
     }
     msgs = basicSetManager(newManager, msgs);
     if (msgs != null) {
       msgs.dispatch();
     }
   } else if (eNotificationRequired()) {
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ICompositeFormPackage.COMPOSITE_FORM_DESCRIPTOR__MANAGER,
             newManager,
             newManager));
   }
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setFunctionUnit(SAPFunctionUnit newFunctionUnit) {
   if (newFunctionUnit != eInternalContainer()
       || (eContainerFeatureID() != ConnectionPackage.SAP_TEST_INPUT_PARAMETER_TABLE__FUNCTION_UNIT
           && newFunctionUnit != null)) {
     if (EcoreUtil.isAncestor(this, newFunctionUnit))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newFunctionUnit != null)
       msgs =
           ((InternalEObject) newFunctionUnit)
               .eInverseAdd(
                   this,
                   ConnectionPackage.SAP_FUNCTION_UNIT__TEST_INPUT_PARAMETER_TABLE,
                   SAPFunctionUnit.class,
                   msgs);
     msgs = basicSetFunctionUnit(newFunctionUnit, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             ConnectionPackage.SAP_TEST_INPUT_PARAMETER_TABLE__FUNCTION_UNIT,
             newFunctionUnit,
             newFunctionUnit));
 }
Пример #21
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void setCspecext(CSpecExtension newCspecext) {
   if (newCspecext != eInternalContainer()
       || (eContainerFeatureID() != CspecPackage.ALTER_ATTRIBUTE__CSPECEXT
           && newCspecext != null)) {
     if (EcoreUtil.isAncestor(this, newCspecext))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newCspecext != null)
       msgs =
           ((InternalEObject) newCspecext)
               .eInverseAdd(
                   this,
                   CspecPackage.CSPEC_EXTENSION__ATTRIBUTE_ALTERATIONS,
                   CSpecExtension.class,
                   msgs);
     msgs = basicSetCspecext(newCspecext, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             CspecPackage.ALTER_ATTRIBUTE__CSPECEXT,
             newCspecext,
             newCspecext));
 }
Пример #22
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setInjectorActionsBlock(InjectorActionsBlock newInjectorActionsBlock) {
   if (newInjectorActionsBlock != eInternalContainer()
       || (eContainerFeatureID() != TCSPackage.INJECTOR_ACTION__INJECTOR_ACTIONS_BLOCK
           && newInjectorActionsBlock != null)) {
     if (EcoreUtil.isAncestor(this, newInjectorActionsBlock))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newInjectorActionsBlock != null)
       msgs =
           ((InternalEObject) newInjectorActionsBlock)
               .eInverseAdd(
                   this,
                   TCSPackage.INJECTOR_ACTIONS_BLOCK__INJECTOR_ACTIONS,
                   InjectorActionsBlock.class,
                   msgs);
     msgs = basicSetInjectorActionsBlock(newInjectorActionsBlock, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             TCSPackage.INJECTOR_ACTION__INJECTOR_ACTIONS_BLOCK,
             newInjectorActionsBlock,
             newInjectorActionsBlock));
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setDomain(MeasurementDomain newDomain) {
   if (newDomain != eInternalContainer()
       || (eContainerFeatureID() != RefOntoUMLPackage.MEASUREMENT_DIMENSION__DOMAIN
           && newDomain != null)) {
     if (EcoreUtil.isAncestor(this, newDomain))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newDomain != null)
       msgs =
           ((InternalEObject) newDomain)
               .eInverseAdd(
                   this,
                   RefOntoUMLPackage.MEASUREMENT_DOMAIN__OWNED_DIMENSIONS,
                   MeasurementDomain.class,
                   msgs);
     msgs = basicSetDomain(newDomain, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             RefOntoUMLPackage.MEASUREMENT_DIMENSION__DOMAIN,
             newDomain,
             newDomain));
 }
Пример #24
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setParent(NodeB newParent) {
   if (newParent != eInternalContainer()
       || eContainerFeatureID() != Model3Package.NODE_B__PARENT && newParent != null) {
     if (EcoreUtil.isAncestor(this, newParent)) {
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     }
     NotificationChain msgs = null;
     if (eInternalContainer() != null) {
       msgs = eBasicRemoveFromContainer(msgs);
     }
     if (newParent != null) {
       msgs =
           ((InternalEObject) newParent)
               .eInverseAdd(this, Model3Package.NODE_B__CHILDREN, NodeB.class, msgs);
     }
     msgs = basicSetParent(newParent, msgs);
     if (msgs != null) {
       msgs.dispatch();
     }
   } else if (eNotificationRequired()) {
     eNotify(
         new ENotificationImpl(
             this, Notification.SET, Model3Package.NODE_B__PARENT, newParent, newParent));
   }
 }
Пример #25
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setSampleMessages(SampleMessages newSampleMessages) {
   if (newSampleMessages != eContainer
       || (eContainerFeatureID != WebServicePackage.SAMPLE_FROM_XSD__SAMPLE_MESSAGES
           && newSampleMessages != null)) {
     if (EcoreUtil.isAncestor(this, newSampleMessages))
       throw new IllegalArgumentException(
           "Recursive containment not allowed for " + toString()); // $NON-NLS-1$
     NotificationChain msgs = null;
     if (eContainer != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newSampleMessages != null)
       msgs =
           ((InternalEObject) newSampleMessages)
               .eInverseAdd(
                   this,
                   WebServicePackage.SAMPLE_MESSAGES__SAMPLE_FROM_XSD,
                   SampleMessages.class,
                   msgs);
     msgs =
         eBasicSetContainer(
             (InternalEObject) newSampleMessages,
             WebServicePackage.SAMPLE_FROM_XSD__SAMPLE_MESSAGES,
             msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             WebServicePackage.SAMPLE_FROM_XSD__SAMPLE_MESSAGES,
             newSampleMessages,
             newSampleMessages));
 }
 protected IScope doGetTypeScope(XFeatureCall call, JvmType type) {
   if (call.isPackageFragment()) {
     if (type instanceof JvmDeclaredType) {
       String packageName = ((JvmDeclaredType) type).getPackageName();
       int dot = packageName.indexOf('.');
       if (dot == -1) {
         return new SingletonScope(EObjectDescription.create(packageName, type), IScope.NULLSCOPE);
       } else {
         String firstSegment = packageName.substring(0, dot);
         return new SingletonScope(
             EObjectDescription.create(firstSegment, type), IScope.NULLSCOPE);
       }
     }
     return IScope.NULLSCOPE;
   } else {
     if (type instanceof JvmDeclaredType && ((JvmDeclaredType) type).getDeclaringType() != null) {
       Resource resource = call.eResource();
       if (resource instanceof XtextResource) {
         XImportSection importSection =
             importsConfiguration.getImportSection((XtextResource) resource);
         if (importSection != null) {
           List<XImportDeclaration> importDeclarations = importSection.getImportDeclarations();
           List<IEObjectDescription> descriptions = Lists.newArrayList();
           for (XImportDeclaration importDeclaration : importDeclarations) {
             if (!importDeclaration.isStatic()
                 && !importDeclaration.isWildcard()
                 && !importDeclaration.isExtension()) {
               JvmDeclaredType importedType = importDeclaration.getImportedType();
               if (importedType == type) {
                 String syntax = importsConfiguration.getLegacyImportSyntax(importDeclaration);
                 if (syntax != null /* no node model attached */
                     && syntax.equals(type.getQualifiedName())) {
                   String packageName = importedType.getPackageName();
                   descriptions.add(
                       EObjectDescription.create(
                           syntax.substring(packageName.length() + 1), type));
                 }
               }
               if (EcoreUtil.isAncestor(importedType, type)) {
                 String name = type.getSimpleName();
                 JvmType worker = type;
                 while (worker != importedType) {
                   worker = (JvmType) worker.eContainer();
                   name = worker.getSimpleName() + "$" + name;
                 }
                 descriptions.add(EObjectDescription.create(name, type));
               }
             }
           }
           return new SimpleScope(descriptions);
         }
       }
       return new SingletonScope(
           EObjectDescription.create(type.getSimpleName(), type), IScope.NULLSCOPE);
     } else {
       return new SingletonScope(
           EObjectDescription.create(type.getSimpleName(), type), IScope.NULLSCOPE);
     }
   }
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setRepository(TaskRepository newRepository) {
   if (newRepository != eInternalContainer()
       || (eContainerFeatureID() != TasktrackerPackage.REPOSITORY_PERSON__REPOSITORY
           && newRepository != null)) {
     if (EcoreUtil.isAncestor(this, newRepository))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newRepository != null)
       msgs =
           ((InternalEObject) newRepository)
               .eInverseAdd(
                   this,
                   TasktrackerPackage.TASK_REPOSITORY__PERSON_LIST,
                   TaskRepository.class,
                   msgs);
     msgs = basicSetRepository(newRepository, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             TasktrackerPackage.REPOSITORY_PERSON__REPOSITORY,
             newRepository,
             newRepository));
 }
Пример #28
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setDimensionDeployment(DimensionDeployment newDimensionDeployment) {
   if (newDimensionDeployment != eInternalContainer()
       || (eContainerFeatureID() != OlapPackage.STRUCTURE_MAP__DIMENSION_DEPLOYMENT
           && newDimensionDeployment != null)) {
     if (EcoreUtil.isAncestor(this, newDimensionDeployment))
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newDimensionDeployment != null)
       msgs =
           ((InternalEObject) newDimensionDeployment)
               .eInverseAdd(
                   this,
                   OlapPackage.DIMENSION_DEPLOYMENT__STRUCTURE_MAP,
                   DimensionDeployment.class,
                   msgs);
     msgs = basicSetDimensionDeployment(newDimensionDeployment, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             OlapPackage.STRUCTURE_MAP__DIMENSION_DEPLOYMENT,
             newDimensionDeployment,
             newDimensionDeployment));
 }
Пример #29
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void setJavaModel(JDTJavaModel newJavaModel) {
   if (newJavaModel != eInternalContainer()
       || (eContainerFeatureID() != JdtmmPackage.JDT_JAVA_PROJECT__JAVA_MODEL
           && newJavaModel != null)) {
     if (EcoreUtil.isAncestor(this, newJavaModel)) {
       throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
     }
     NotificationChain msgs = null;
     if (eInternalContainer() != null) {
       msgs = eBasicRemoveFromContainer(msgs);
     }
     if (newJavaModel != null) {
       msgs =
           ((InternalEObject) newJavaModel)
               .eInverseAdd(
                   this, JdtmmPackage.JDT_JAVA_MODEL__JAVA_PROJECT, JDTJavaModel.class, msgs);
     }
     msgs = basicSetJavaModel(newJavaModel, msgs);
     if (msgs != null) {
       msgs.dispatch();
     }
   } else if (eNotificationRequired()) {
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             JdtmmPackage.JDT_JAVA_PROJECT__JAVA_MODEL,
             newJavaModel,
             newJavaModel));
   }
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void setTableSpace(LUWTableSpace newTableSpace) {
   if (newTableSpace != eInternalContainer()
       || (eContainerFeatureID() != LUWPackage.LUW_DATABASE_CONTAINER__TABLE_SPACE
           && newTableSpace != null)) {
     if (EcoreUtil.isAncestor(this, newTableSpace))
       throw new IllegalArgumentException(
           "Recursive containment not allowed for " + toString()); // $NON-NLS-1$
     NotificationChain msgs = null;
     if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs);
     if (newTableSpace != null)
       msgs =
           ((InternalEObject) newTableSpace)
               .eInverseAdd(
                   this, LUWPackage.LUW_TABLE_SPACE__CONTAINERS, LUWTableSpace.class, msgs);
     msgs = basicSetTableSpace(newTableSpace, msgs);
     if (msgs != null) msgs.dispatch();
   } else if (eNotificationRequired())
     eNotify(
         new ENotificationImpl(
             this,
             Notification.SET,
             LUWPackage.LUW_DATABASE_CONTAINER__TABLE_SPACE,
             newTableSpace,
             newTableSpace));
 }