/**
  * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate
  * feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link
  * org.eclipse.emf.edit.command.RemoveCommand} or {@link org.eclipse.emf.edit.command.MoveCommand}
  * in {@link #createCommand}.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public Collection getChildrenFeatures(Object object) {
   if (childrenFeatures == null) {
     super.getChildrenFeatures(object);
     childrenFeatures.add(BeansPackage.Literals.BEAN__PROPERTIES);
   }
   return childrenFeatures;
 }
  /**
   * 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(
            BeansPackage.Literals.BEAN__PROPERTIES, BeansFactory.eINSTANCE.createBeanProperty()));
  }
  /**
   * This returns the property descriptors for the adapted class.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  @Override
  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
    if (itemPropertyDescriptors == null) {
      super.getPropertyDescriptors(object);

      addValuePropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
 /**
  * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate
  * feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link
  * org.eclipse.emf.edit.command.RemoveCommand} or {@link org.eclipse.emf.edit.command.MoveCommand}
  * in {@link #createCommand}.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
   if (childrenFeatures == null) {
     super.getChildrenFeatures(object);
     childrenFeatures.add(ComponentsPackage.Literals.COMPONENT__INPUTS);
     childrenFeatures.add(ComponentsPackage.Literals.COMPONENT__OUTPUTS);
     childrenFeatures.add(ComponentsPackage.Literals.COMPONENT__VARIABLES);
   }
   return childrenFeatures;
 }
  /**
   * This returns the property descriptors for the adapted class.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  @Override
  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
    if (itemPropertyDescriptors == null) {
      super.getPropertyDescriptors(object);

      addRenamedPackagePropertyDescriptor(object);
      addRenameAllPropertyDescriptor(object);
    }
    return itemPropertyDescriptors;
  }
  /**
   * This handles model notifications by calling {@link #updateChildren} to update any cached
   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  public void notifyChanged(Notification notification) {
    updateChildren(notification);

    switch (notification.getFeatureID(Bean.class)) {
      case BeansPackage.BEAN__PROPERTIES:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), true, false));
        return;
    }
    super.notifyChanged(notification);
  }
  /**
   * This handles model notifications by calling {@link #updateChildren} to update any cached
   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  @Override
  public void notifyChanged(Notification notification) {
    updateChildren(notification);

    switch (notification.getFeatureID(EnumerationLiteral.class)) {
      case ViewsPackage.ENUMERATION_LITERAL__VALUE:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
    }
    super.notifyChanged(notification);
  }
  /**
   * This handles model notifications by calling {@link #updateChildren} to update any cached
   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  @Override
  public void notifyChanged(Notification notification) {
    updateChildren(notification);

    switch (notification.getFeatureID(PackageRename.class)) {
      case Aadl2Package.PACKAGE_RENAME__RENAME_ALL:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
    }
    super.notifyChanged(notification);
  }
Beispiel #9
0
  /**
   * This handles model notifications by calling {@link #updateChildren} to update any cached
   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  @Override
  public void notifyChanged(Notification notification) {
    updateChildren(notification);

    switch (notification.getFeatureID(TypedElement.class)) {
      case UMLPackage.TYPED_ELEMENT__TYPE:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
    }
    super.notifyChanged(notification);
  }
  /**
   * This handles model notifications by calling {@link #updateChildren} to update any cached
   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  @Override
  public void notifyChanged(Notification notification) {
    updateChildren(notification);

    switch (notification.getFeatureID(AbstractVariable.class)) {
      case ComponentsPackage.ABSTRACT_VARIABLE__TYPE:
      case ComponentsPackage.ABSTRACT_VARIABLE__CAUSALITY:
      case ComponentsPackage.ABSTRACT_VARIABLE__VALUE:
      case ComponentsPackage.ABSTRACT_VARIABLE__DESCRIPTION:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
    }
    super.notifyChanged(notification);
  }
  /**
   * This handles model notifications by calling {@link #updateChildren} to update any cached
   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  @Override
  public void notifyChanged(Notification notification) {
    updateChildren(notification);

    switch (notification.getFeatureID(DisplayComponent.class)) {
      case ComponentsPackage.DISPLAY_COMPONENT__STEP_PERIOD:
      case ComponentsPackage.DISPLAY_COMPONENT__CHART:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
      case ComponentsPackage.DISPLAY_COMPONENT__INPUTS:
      case ComponentsPackage.DISPLAY_COMPONENT__OUTPUTS:
      case ComponentsPackage.DISPLAY_COMPONENT__VARIABLES:
        fireNotifyChanged(
            new ViewerNotification(notification, notification.getNotifier(), true, false));
        return;
    }
    super.notifyChanged(notification);
  }
 /**
  * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that
  * can be created under this object.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
   super.collectNewChildDescriptors(newChildDescriptors, object);
 }
  /**
   * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that
   * can be created under this object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  @Override
  protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
    super.collectNewChildDescriptors(newChildDescriptors, object);

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__INPUTS,
            ComponentsFactory.eINSTANCE.createFMUPort()));

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__INPUTS,
            ComponentsFactory.eINSTANCE.createEventBPort()));

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__INPUTS,
            ComponentsFactory.eINSTANCE.createDisplayPort()));

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__OUTPUTS,
            ComponentsFactory.eINSTANCE.createFMUPort()));

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__OUTPUTS,
            ComponentsFactory.eINSTANCE.createEventBPort()));

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__OUTPUTS,
            ComponentsFactory.eINSTANCE.createDisplayPort()));

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__VARIABLES,
            ComponentsFactory.eINSTANCE.createFMUPort()));

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__VARIABLES,
            ComponentsFactory.eINSTANCE.createEventBPort()));

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__VARIABLES,
            ComponentsFactory.eINSTANCE.createFMUVariable()));

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__VARIABLES,
            ComponentsFactory.eINSTANCE.createEventBVariable()));

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__VARIABLES,
            ComponentsFactory.eINSTANCE.createDisplayPort()));

    newChildDescriptors.add(
        createChildParameter(
            ComponentsPackage.Literals.COMPONENT__VARIABLES,
            ComponentsFactory.eINSTANCE.createFMUParameter()));
  }
 /**
  * This handles model notifications by calling {@link #updateChildren} to update any cached
  * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void notifyChanged(Notification notification) {
   updateChildren(notification);
   super.notifyChanged(notification);
 }
 /**
  * This returns the property descriptors for the adapted class.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public List getPropertyDescriptors(Object object) {
   if (itemPropertyDescriptors == null) {
     super.getPropertyDescriptors(object);
   }
   return itemPropertyDescriptors;
 }
 /**
  * This disposes all of the item providers created by this factory.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public void dispose() {
   if (graphItemProvider != null) graphItemProvider.dispose();
   if (namedElementItemProvider != null) namedElementItemProvider.dispose();
   if (nodeItemProvider != null) nodeItemProvider.dispose();
   if (edgeItemProvider != null) edgeItemProvider.dispose();
 }