diff options
Diffstat (limited to 'extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel.edit/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/provider/IActivityGraphItemProvider.java')
1 files changed, 830 insertions, 0 deletions
diff --git a/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel.edit/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/provider/IActivityGraphItemProvider.java b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel.edit/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/provider/IActivityGraphItemProvider.java new file mode 100644 index 00000000000..7a6d4289cff --- /dev/null +++ b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel.edit/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/provider/IActivityGraphItemProvider.java @@ -0,0 +1,830 @@ +/** + * 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.migration.rhapsody.rhapsodymetamodel.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.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.migration.rhapsody.rhapsodymetamodel.IActivityGraph; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.UMLRhapsodyFactory; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.UMLRhapsodyPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IActivityGraph} object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class IActivityGraphItemProvider extends NestedStateChartTypeItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IActivityGraphItemProvider(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); + + addModifiedTimeWeakPropertyDescriptor(object); + addIdPropertyDescriptor(object); + addMyStatePropertyDescriptor(object); + addNamePropertyDescriptor(object); + addLastIDPropertyDescriptor(object); + addWeakCGTimePropertyDescriptor(object); + addStrongCGTimePropertyDescriptor(object); + addMultiplicityPropertyDescriptor(object); + addItsStateChartPropertyDescriptor(object); + addClassModifierPropertyDescriptor(object); + addBaseVersionPropertyDescriptor(object); + addDiagramPropertyDescriptor(object); + addRequiremenTracabilityHandlePropertyDescriptor(object); + addAnalysisModePropertyDescriptor(object); + addCodeUpdateCGTimePropertyDescriptor(object); + addObjectCreationPropertyDescriptor(object); + addUmlDependencyIDPropertyDescriptor(object); + addDisplayNamePropertyDescriptor(object); + addTheMainDiagramPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * 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_ValueType_modifiedTimeWeak_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_ValueType_modifiedTimeWeak_feature", "_UI_ValueType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getValueType_ModifiedTimeWeak(), + 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_ValueType_id_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_ValueType_id_feature", "_UI_ValueType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getValueType_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_ValueType_myState_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_ValueType_myState_feature", "_UI_ValueType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getValueType_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_ValueType_name_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_ValueType_name_feature", "_UI_ValueType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getValueType_Name(), + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Last ID feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addLastIDPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IActivityGraph_lastID_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_lastID_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_LastID(), + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Weak CG Time feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addWeakCGTimePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IActivityGraph_weakCGTime_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_weakCGTime_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_WeakCGTime(), + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Strong CG Time feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addStrongCGTimePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IActivityGraph_strongCGTime_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_strongCGTime_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_StrongCGTime(), + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Multiplicity feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addMultiplicityPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IActivityGraph_multiplicity_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_multiplicity_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Multiplicity(), + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Its State Chart feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addItsStateChartPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IActivityGraph_itsStateChart_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_itsStateChart_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_ItsStateChart(), + true, + false, + true, + null, + null, + null)); + } + + /** + * This adds a property descriptor for the Class Modifier feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addClassModifierPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IActivityGraph_classModifier_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_classModifier_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_ClassModifier(), + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Base Version feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addBaseVersionPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IActivityGraph_baseVersion_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_baseVersion_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_BaseVersion(), + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Diagram feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addDiagramPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IActivityGraph_diagram_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_diagram_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Diagram(), + 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_IActivityGraph_requiremenTracabilityHandle_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_requiremenTracabilityHandle_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_RequiremenTracabilityHandle(), + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Analysis Mode feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addAnalysisModePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IActivityGraph_AnalysisMode_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_AnalysisMode_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_AnalysisMode(), + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Code Update CG Time feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addCodeUpdateCGTimePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IActivityGraph_codeUpdateCGTime_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_codeUpdateCGTime_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_CodeUpdateCGTime(), + 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_IActivityGraph_objectCreation_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_objectCreation_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_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_IActivityGraph_umlDependencyID_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_umlDependencyID_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_UmlDependencyID(), + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * 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_IActivityGraph_displayName_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_displayName_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_DisplayName(), + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the The Main Diagram feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addTheMainDiagramPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_IActivityGraph_theMainDiagram_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_IActivityGraph_theMainDiagram_feature", "_UI_IActivityGraph_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_TheMainDiagram(), + true, + false, + true, + null, + 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(UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States()); + childrenFeatures.add(UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Views()); + childrenFeatures.add(UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Properties()); + childrenFeatures.add(UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Description()); + childrenFeatures.add(UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Swimlanes()); + childrenFeatures.add(UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes()); + childrenFeatures.add(UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Annotations()); + childrenFeatures.add(UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_HyperLinks()); + childrenFeatures.add(UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Dependencies()); + childrenFeatures.add(UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Associations()); + childrenFeatures.add(UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_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 IActivityGraph.gif. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/IActivityGraph")); //$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 = ((IActivityGraph)object).getName(); + return label == null || label.length() == 0 ? + getString("_UI_IActivityGraph_type") : //$NON-NLS-1$ + getString("_UI_IActivityGraph_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(IActivityGraph.class)) { + case UMLRhapsodyPackage.IACTIVITY_GRAPH__MODIFIED_TIME_WEAK: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__ID: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__MY_STATE: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__NAME: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__LAST_ID: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__WEAK_CG_TIME: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__STRONG_CG_TIME: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__MULTIPLICITY: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__CLASS_MODIFIER: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__BASE_VERSION: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__REQUIREMEN_TRACABILITY_HANDLE: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__ANALYSIS_MODE: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__CODE_UPDATE_CG_TIME: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__OBJECT_CREATION: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__UML_DEPENDENCY_ID: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__DISPLAY_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case UMLRhapsodyPackage.IACTIVITY_GRAPH__STATES: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__VIEWS: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__PROPERTIES: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__DESCRIPTION: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__SWIMLANES: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__STEREOTYPES: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__ANNOTATIONS: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__HYPER_LINKS: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__DEPENDENCIES: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__ASSOCIATIONS: + case UMLRhapsodyPackage.IACTIVITY_GRAPH__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 + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createIState())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createIAcceptEventAction())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createIAcceptTimeEvent())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createIBranch())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createICallOperation())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createIConnector())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createIFork())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createIHistoryConnector())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createIObjectNode())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createIPin())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createIReferenceActivity())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(), + UMLRhapsodyFactory.eINSTANCE.createITimeEvent())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Views(), + UMLRhapsodyFactory.eINSTANCE.createIActivityDiagram())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Properties(), + UMLRhapsodyFactory.eINSTANCE.createIPropertyContainer())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Description(), + UMLRhapsodyFactory.eINSTANCE.createIDescription())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Swimlanes(), + UMLRhapsodyFactory.eINSTANCE.createISwimlane())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIClassifier())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIActor())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIClass())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIAssociationClass())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIInterfaceItem())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIEvent())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIEventReception())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIFlowItem())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createINode())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIOperation())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIStateChart())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIStereotype())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIType())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Stereotypes(), + UMLRhapsodyFactory.eINSTANCE.createIUseCase())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Annotations(), + UMLRhapsodyFactory.eINSTANCE.createIComment())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_HyperLinks(), + UMLRhapsodyFactory.eINSTANCE.createIMHyperLink())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Dependencies(), + UMLRhapsodyFactory.eINSTANCE.createIDependency())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Dependencies(), + UMLRhapsodyFactory.eINSTANCE.createIHyperLink())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Associations(), + UMLRhapsodyFactory.eINSTANCE.createIAssociationEnd())); + + newChildDescriptors.add + (createChildParameter + (UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_Tags(), + UMLRhapsodyFactory.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 == UMLRhapsodyPackage.eINSTANCE.getNestedStateChartType_Connectors() || + childFeature == UMLRhapsodyPackage.eINSTANCE.getIActivityGraph_States(); + + 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); + } + +} |