| /** |
| * Copyright (c) 2016 CEA LIST and others. |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * CEA LIST - Initial API and implementation |
| * |
| */ |
| package org.eclipse.papyrus.interoperability.rpy.rpymetamodel.provider; |
| |
| |
| import java.util.Collection; |
| import java.util.List; |
| |
| import org.eclipse.emf.common.notify.AdapterFactory; |
| import org.eclipse.emf.common.notify.Notification; |
| |
| import org.eclipse.emf.ecore.EStructuralFeature; |
| import org.eclipse.emf.ecore.EcoreFactory; |
| import org.eclipse.emf.ecore.EcorePackage; |
| import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; |
| import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; |
| import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; |
| import org.eclipse.emf.edit.provider.ViewerNotification; |
| |
| import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IInformationFlow; |
| import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.UMLRpyFactory; |
| import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.UMLRpyPackage; |
| |
| /** |
| * This is the item provider adapter for a {@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IInformationFlow} object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class IInformationFlowItemProvider extends DeclarativesTypeItemProvider { |
| /** |
| * This constructs an instance from a factory and a notifier. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public IInformationFlowItemProvider(AdapterFactory adapterFactory) { |
| super(adapterFactory); |
| } |
| |
| /** |
| * 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); |
| |
| addDisplayNamePropertyDescriptor(object); |
| addIdPropertyDescriptor(object); |
| addMyStatePropertyDescriptor(object); |
| addNamePropertyDescriptor(object); |
| addEnd1_PropertyDescriptor(object); |
| addEnd2_PropertyDescriptor(object); |
| addDirection_PropertyDescriptor(object); |
| addModifiedTimeWeakPropertyDescriptor(object); |
| addEnd1ObjectPort_PropertyDescriptor(object); |
| addEnd2ObjectPort_PropertyDescriptor(object); |
| addRequiremenTracabilityHandlePropertyDescriptor(object); |
| addObjectCreationPropertyDescriptor(object); |
| addUmlDependencyIDPropertyDescriptor(object); |
| } |
| return itemPropertyDescriptors; |
| } |
| |
| /** |
| * This adds a property descriptor for the Display Name feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addDisplayNamePropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IModelElement_displayName_feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IModelElement_displayName_feature", "_UI_IModelElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIModelElement_DisplayName(), |
| true, |
| false, |
| false, |
| ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the Id feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addIdPropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_id_feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_id_feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_Id(), |
| true, |
| false, |
| false, |
| ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the My State feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addMyStatePropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_myState_feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_myState_feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_MyState(), |
| true, |
| false, |
| false, |
| ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the Name feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addNamePropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_name_feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_name_feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_Name(), |
| true, |
| false, |
| false, |
| ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the End1 feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addEnd1_PropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_end1__feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_end1__feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_End1_(), |
| true, |
| false, |
| true, |
| null, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the End2 feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addEnd2_PropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_end2__feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_end2__feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_End2_(), |
| true, |
| false, |
| true, |
| null, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the Direction feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addDirection_PropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_direction__feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_direction__feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_Direction_(), |
| true, |
| false, |
| false, |
| ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the Modified Time Weak feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addModifiedTimeWeakPropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_modifiedTimeWeak_feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_modifiedTimeWeak_feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_ModifiedTimeWeak(), |
| true, |
| false, |
| false, |
| ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the End1 Object Port feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addEnd1ObjectPort_PropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_end1ObjectPort__feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_end1ObjectPort__feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_End1ObjectPort_(), |
| true, |
| false, |
| true, |
| null, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the End2 Object Port feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addEnd2ObjectPort_PropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_end2ObjectPort__feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_end2ObjectPort__feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_End2ObjectPort_(), |
| true, |
| false, |
| true, |
| null, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the Requiremen Tracability Handle feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addRequiremenTracabilityHandlePropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_requiremenTracabilityHandle_feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_requiremenTracabilityHandle_feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_RequiremenTracabilityHandle(), |
| true, |
| false, |
| false, |
| ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the Object Creation feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addObjectCreationPropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_objectCreation_feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_objectCreation_feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_ObjectCreation(), |
| true, |
| false, |
| false, |
| ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, |
| null, |
| null)); |
| } |
| |
| /** |
| * This adds a property descriptor for the Uml Dependency ID feature. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void addUmlDependencyIDPropertyDescriptor(Object object) { |
| itemPropertyDescriptors.add |
| (createItemPropertyDescriptor |
| (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), |
| getResourceLocator(), |
| getString("_UI_IInformationFlow_umlDependencyID_feature"), //$NON-NLS-1$ |
| getString("_UI_PropertyDescriptor_description", "_UI_IInformationFlow_umlDependencyID_feature", "_UI_IInformationFlow_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| UMLRpyPackage.eINSTANCE.getIInformationFlow_UmlDependencyID(), |
| true, |
| false, |
| false, |
| ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, |
| null, |
| null)); |
| } |
| |
| /** |
| * 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(EcorePackage.Literals.EMODEL_ELEMENT__EANNOTATIONS); |
| childrenFeatures.add(UMLRpyPackage.eINSTANCE.getIInformationFlow_Conveyed()); |
| childrenFeatures.add(UMLRpyPackage.eINSTANCE.getIInformationFlow_Description()); |
| childrenFeatures.add(UMLRpyPackage.eINSTANCE.getIInformationFlow_HyperLinks()); |
| childrenFeatures.add(UMLRpyPackage.eINSTANCE.getIInformationFlow_Dependencies()); |
| childrenFeatures.add(UMLRpyPackage.eINSTANCE.getIInformationFlow_Annotations()); |
| childrenFeatures.add(UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes()); |
| childrenFeatures.add(UMLRpyPackage.eINSTANCE.getIInformationFlow_Tags()); |
| } |
| return childrenFeatures; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EStructuralFeature getChildFeature(Object object, Object child) { |
| // Check the type of the specified child object and return the proper feature to use for |
| // adding (see {@link AddCommand}) it as a child. |
| |
| return super.getChildFeature(object, child); |
| } |
| |
| /** |
| * This returns IInformationFlow.gif. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object getImage(Object object) { |
| return overlayImage(object, getResourceLocator().getImage("full/obj16/IInformationFlow")); //$NON-NLS-1$ |
| } |
| |
| /** |
| * This returns the label text for the adapted class. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String getText(Object object) { |
| String label = ((IInformationFlow)object).getName(); |
| return label == null || label.length() == 0 ? |
| getString("_UI_IInformationFlow_type") : //$NON-NLS-1$ |
| getString("_UI_IInformationFlow_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ |
| } |
| |
| |
| /** |
| * 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(IInformationFlow.class)) { |
| case UMLRpyPackage.IINFORMATION_FLOW__DISPLAY_NAME: |
| case UMLRpyPackage.IINFORMATION_FLOW__ID: |
| case UMLRpyPackage.IINFORMATION_FLOW__MY_STATE: |
| case UMLRpyPackage.IINFORMATION_FLOW__NAME: |
| case UMLRpyPackage.IINFORMATION_FLOW__DIRECTION_: |
| case UMLRpyPackage.IINFORMATION_FLOW__MODIFIED_TIME_WEAK: |
| case UMLRpyPackage.IINFORMATION_FLOW__REQUIREMEN_TRACABILITY_HANDLE: |
| case UMLRpyPackage.IINFORMATION_FLOW__OBJECT_CREATION: |
| case UMLRpyPackage.IINFORMATION_FLOW__UML_DEPENDENCY_ID: |
| fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); |
| return; |
| case UMLRpyPackage.IINFORMATION_FLOW__EANNOTATIONS: |
| case UMLRpyPackage.IINFORMATION_FLOW__CONVEYED: |
| case UMLRpyPackage.IINFORMATION_FLOW__DESCRIPTION: |
| case UMLRpyPackage.IINFORMATION_FLOW__HYPER_LINKS: |
| case UMLRpyPackage.IINFORMATION_FLOW__DEPENDENCIES: |
| case UMLRpyPackage.IINFORMATION_FLOW__ANNOTATIONS: |
| case UMLRpyPackage.IINFORMATION_FLOW__STEREOTYPES: |
| case UMLRpyPackage.IINFORMATION_FLOW__TAGS: |
| 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); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (EcorePackage.Literals.EMODEL_ELEMENT__EANNOTATIONS, |
| EcoreFactory.eINSTANCE.createEAnnotation())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Conveyed(), |
| UMLRpyFactory.eINSTANCE.createIClass())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Conveyed(), |
| UMLRpyFactory.eINSTANCE.createIAssociationClass())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Conveyed(), |
| UMLRpyFactory.eINSTANCE.createIEvent())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Conveyed(), |
| UMLRpyFactory.eINSTANCE.createIInformationItem())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Conveyed(), |
| UMLRpyFactory.eINSTANCE.createIPart())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Conveyed(), |
| UMLRpyFactory.eINSTANCE.createIStateChart())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Description(), |
| UMLRpyFactory.eINSTANCE.createIDescription())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_HyperLinks(), |
| UMLRpyFactory.eINSTANCE.createIMHyperLink())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Dependencies(), |
| UMLRpyFactory.eINSTANCE.createIDependency())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Dependencies(), |
| UMLRpyFactory.eINSTANCE.createIHyperLink())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Annotations(), |
| UMLRpyFactory.eINSTANCE.createIRequirement())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIUnit())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIClassifier())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIActor())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIAnnotation())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIVariable())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIArgument())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIClass())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIAssociationClass())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIAttribute())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIDiagram())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createICollaborationDiagram())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIComment())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIComponent())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIComponentDiagram())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIConstraint())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIControlledFile())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIDeploymentDiagram())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIInterfaceItem())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIEvent())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIEventReception())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIFile())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIFlowItem())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIRelation())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIInstance())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createILink())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIMatrixLayout())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIMatrixView())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIModule())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createINode())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIObjectModelDiagram())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIOperation())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIPackage())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIPanelDiagram())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIPort())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIProfile())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIProject())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIRequirement())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createISequenceDiagram())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIStateChart())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIStateChartDiagram())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIStereotype())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIStructureDiagram())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createISysMLPort())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createITableLayout())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createITableView())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createITag())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createITemplateParameter())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIType())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIUseCase())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes(), |
| UMLRpyFactory.eINSTANCE.createIUseCaseDiagram())); |
| |
| newChildDescriptors.add |
| (createChildParameter |
| (UMLRpyPackage.eINSTANCE.getIInformationFlow_Tags(), |
| UMLRpyFactory.eINSTANCE.createITag())); |
| } |
| |
| /** |
| * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) { |
| Object childFeature = feature; |
| Object childObject = child; |
| |
| boolean qualify = |
| childFeature == UMLRpyPackage.eINSTANCE.getIInformationFlow_Conveyed() || |
| childFeature == UMLRpyPackage.eINSTANCE.getIInformationFlow_Stereotypes() || |
| childFeature == UMLRpyPackage.eINSTANCE.getIInformationFlow_Annotations() || |
| childFeature == UMLRpyPackage.eINSTANCE.getIInformationFlow_Tags(); |
| |
| if (qualify) { |
| return getString |
| ("_UI_CreateChild_text2", //$NON-NLS-1$ |
| new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); |
| } |
| return super.getCreateChildText(owner, feature, child, selection); |
| } |
| |
| } |