Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/InteractionShapeItemProvider.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/InteractionShapeItemProvider.java60
1 files changed, 54 insertions, 6 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/InteractionShapeItemProvider.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/InteractionShapeItemProvider.java
index d12ba28d78c..b3ea16e3e67 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/InteractionShapeItemProvider.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/InteractionShapeItemProvider.java
@@ -11,28 +11,34 @@
*/
package org.eclipse.papyrus.umldi.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.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
import org.eclipse.papyrus.umldi.InteractionShape;
+import org.eclipse.papyrus.umldi.UMLDIFactory;
+import org.eclipse.papyrus.umldi.UMLDIPackage;
/**
* This is the item provider adapter for a {@link org.eclipse.papyrus.umldi.InteractionShape} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class InteractionShapeItemProvider extends ClassShapeItemProvider {
+
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public InteractionShapeItemProvider(AdapterFactory adapterFactory) {
@@ -43,21 +49,54 @@ public class InteractionShapeItemProvider extends ClassShapeItemProvider {
* 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) {
+ if(itemPropertyDescriptors == null) {
super.getPropertyDescriptors(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(UMLDIPackage.Literals.INTERACTION_FRAGMENT_WITH_GATES_SHAPE__GATE_SHAPE);
+ childrenFeatures.add(UMLDIPackage.Literals.INTERACTION_FRAGMENT_WITH_SUBFRAGMENTS_SHAPE__SUBFRAGMENT_COMPARTMENT);
+ }
+ 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 InteractionShape.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -69,25 +108,32 @@ public class InteractionShapeItemProvider extends ClassShapeItemProvider {
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
InteractionShape interactionShape = (InteractionShape)object;
- return getString("_UI_InteractionShape_type") + " " + interactionShape.isUseClassifierNotation();
+ return getString("_UI_InteractionShape_type") + " " + interactionShape.isShowStereotypeAttributes();
}
-
/**
* 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(InteractionShape.class)) {
+ case UMLDIPackage.INTERACTION_SHAPE__GATE_SHAPE:
+ case UMLDIPackage.INTERACTION_SHAPE__SUBFRAGMENT_COMPARTMENT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
super.notifyChanged(notification);
}
@@ -96,11 +142,13 @@ public class InteractionShapeItemProvider extends ClassShapeItemProvider {
* 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(UMLDIPackage.Literals.INTERACTION_FRAGMENT_WITH_GATES_SHAPE__GATE_SHAPE, UMLDIFactory.eINSTANCE.createGateShape()));
+ newChildDescriptors.add(createChildParameter(UMLDIPackage.Literals.INTERACTION_FRAGMENT_WITH_SUBFRAGMENTS_SHAPE__SUBFRAGMENT_COMPARTMENT, UMLDIFactory.eINSTANCE.createSubfragmentCompartment()));
}
-
}

Back to the top