blob: 926bfe1b3b6552517b3f7b3d7151cf1cb69dcb5d [file] [log] [blame]
/**
* 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.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.IState;
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.IState} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class IStateItemProvider extends IStateVertexItemProvider {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IStateItemProvider(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);
addParentPropertyDescriptor(object);
addStateTypePropertyDescriptor(object);
addDefaultTransPropertyDescriptor(object);
addInheritsFromHandlePropertyDescriptor(object);
addRequiremenTracabilityHandlePropertyDescriptor(object);
addTheMainDiagramPropertyDescriptor(object);
addSwimlanePropertyDescriptor(object);
addCodeUpdateCGTimePropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
* This adds a property descriptor for the Parent feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addParentPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_IState_parent_feature"), //$NON-NLS-1$
getString("_UI_PropertyDescriptor_description", "_UI_IState_parent_feature", "_UI_IState_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
UMLRpyPackage.eINSTANCE.getIState_Parent(),
true,
false,
false,
null,
null,
null));
}
/**
* This adds a property descriptor for the State Type feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addStateTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_IState_stateType_feature"), //$NON-NLS-1$
getString("_UI_PropertyDescriptor_description", "_UI_IState_stateType_feature", "_UI_IState_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
UMLRpyPackage.eINSTANCE.getIState_StateType(),
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
/**
* This adds a property descriptor for the Default Trans feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addDefaultTransPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_IState_defaultTrans_feature"), //$NON-NLS-1$
getString("_UI_PropertyDescriptor_description", "_UI_IState_defaultTrans_feature", "_UI_IState_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
UMLRpyPackage.eINSTANCE.getIState_DefaultTrans(),
true,
false,
false,
null,
null,
null));
}
/**
* This adds a property descriptor for the Inherits From Handle feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addInheritsFromHandlePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_IState_inheritsFromHandle_feature"), //$NON-NLS-1$
getString("_UI_PropertyDescriptor_description", "_UI_IState_inheritsFromHandle_feature", "_UI_IState_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
UMLRpyPackage.eINSTANCE.getIState_InheritsFromHandle(),
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_IState_requiremenTracabilityHandle_feature"), //$NON-NLS-1$
getString("_UI_PropertyDescriptor_description", "_UI_IState_requiremenTracabilityHandle_feature", "_UI_IState_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
UMLRpyPackage.eINSTANCE.getIState_RequiremenTracabilityHandle(),
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_IState_theMainDiagram_feature"), //$NON-NLS-1$
getString("_UI_PropertyDescriptor_description", "_UI_IState_theMainDiagram_feature", "_UI_IState_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
UMLRpyPackage.eINSTANCE.getIState_TheMainDiagram(),
true,
false,
true,
null,
null,
null));
}
/**
* This adds a property descriptor for the Swimlane feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addSwimlanePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_IState_swimlane_feature"), //$NON-NLS-1$
getString("_UI_PropertyDescriptor_description", "_UI_IState_swimlane_feature", "_UI_IState_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
UMLRpyPackage.eINSTANCE.getIState_Swimlane(),
true,
false,
true,
null,
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_IState_codeUpdateCGTime_feature"), //$NON-NLS-1$
getString("_UI_PropertyDescriptor_description", "_UI_IState_codeUpdateCGTime_feature", "_UI_IState_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
UMLRpyPackage.eINSTANCE.getIState_CodeUpdateCGTime(),
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(UMLRpyPackage.eINSTANCE.getIState_EntryAction());
childrenFeatures.add(UMLRpyPackage.eINSTANCE.getIState_ExitAction());
childrenFeatures.add(UMLRpyPackage.eINSTANCE.getIState_NestedStateChart());
childrenFeatures.add(UMLRpyPackage.eINSTANCE.getIState_Annotations());
childrenFeatures.add(UMLRpyPackage.eINSTANCE.getIState_Dependencies());
}
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 IState.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/IState")); //$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 = ((IState)object).getName();
return label == null || label.length() == 0 ?
getString("_UI_IState_type") : //$NON-NLS-1$
getString("_UI_IState_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(IState.class)) {
case UMLRpyPackage.ISTATE__PARENT:
case UMLRpyPackage.ISTATE__STATE_TYPE:
case UMLRpyPackage.ISTATE__DEFAULT_TRANS:
case UMLRpyPackage.ISTATE__REQUIREMEN_TRACABILITY_HANDLE:
case UMLRpyPackage.ISTATE__CODE_UPDATE_CG_TIME:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case UMLRpyPackage.ISTATE__ENTRY_ACTION:
case UMLRpyPackage.ISTATE__EXIT_ACTION:
case UMLRpyPackage.ISTATE__NESTED_STATE_CHART:
case UMLRpyPackage.ISTATE__ANNOTATIONS:
case UMLRpyPackage.ISTATE__DEPENDENCIES:
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
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIModelElement()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIStateVertex()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIState()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIAcceptEventAction()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIAcceptTimeEvent()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIAction()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIActivityGraph()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIUnit()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIClassifier()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIActor()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIAnnotation()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIVariable()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIArgument()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIClass()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIAssociationClass()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIAssociationEnd()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIAssociationRole()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIAttribute()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createICallOperation()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIClassifierRole()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createICollaboration()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIDiagram()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createICollaborationDiagram()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIComment()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIComponent()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIComponentDiagram()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIComponentInstance()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIConfiguration()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIConnector()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIConstraint()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIValueSpecification()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIContextSpecification()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIControlledFile()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIDependency()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIDeploymentDiagram()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIEnumerationLiteral()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIInterfaceItem()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIEvent()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIEventReception()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIExecutionOccurrence()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIExternalHyperlink()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIFile()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIFileFragment()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIFlow()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIFlowItem()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIGeneralization()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIGuard()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIHyperLink()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIInformationFlow()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIRelation()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIInstance()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIInstanceSlot()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIInstanceSpecification()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIInstanceValue()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIInteractionOccurrence()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIInteractionOperand()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIInteractionOperator()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIInternalHyperlink()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createILink()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createILiteralSpecification()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIMHyperLink()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIMatrixLayout()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIMatrixView()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIMessage()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIMessagePoint()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIModule()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createINode()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIObjectLink()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIObjectModelDiagram()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIObjectNode()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIOperation()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIPackage()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIPanelDiagram()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIPart()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIPin()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIPort()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIPrimitiveOperation()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIProfile()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIProject()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIRequirement()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createISendAction()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createISequenceDiagram()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIStateChart()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIStateChartDiagram()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIStereotype()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIStructureDiagram()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createISubsystem()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createISwimlane()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createISysMLPort()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createITableLayout()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createITableView()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createITag()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createITemplateInstantiation()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createITemplateInstantiationParameter()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createITemplateParameter()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createITransition()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createITrigger()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createITriggered()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIType()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIUseCase()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_EntryAction(),
UMLRpyFactory.eINSTANCE.createIUseCaseDiagram()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_ExitAction(),
UMLRpyFactory.eINSTANCE.createIAction()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_ExitAction(),
UMLRpyFactory.eINSTANCE.createISendAction()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_NestedStateChart(),
UMLRpyFactory.eINSTANCE.createIActivityGraph()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_NestedStateChart(),
UMLRpyFactory.eINSTANCE.createIStateChart()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_Annotations(),
UMLRpyFactory.eINSTANCE.createIAnnotation()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_Annotations(),
UMLRpyFactory.eINSTANCE.createIComment()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_Annotations(),
UMLRpyFactory.eINSTANCE.createIConstraint()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_Annotations(),
UMLRpyFactory.eINSTANCE.createIRequirement()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_Dependencies(),
UMLRpyFactory.eINSTANCE.createIDependency()));
newChildDescriptors.add
(createChildParameter
(UMLRpyPackage.eINSTANCE.getIState_Dependencies(),
UMLRpyFactory.eINSTANCE.createIHyperLink()));
}
/**
* 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.getIState_EntryAction() ||
childFeature == UMLRpyPackage.eINSTANCE.getIState_ExitAction() ||
childFeature == UMLRpyPackage.eINSTANCE.getIState_NestedStateChart() ||
childFeature == UMLRpyPackage.eINSTANCE.getIState_Annotations() ||
childFeature == UMLRpyPackage.eINSTANCE.getIState_Dependencies();
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);
}
}