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/CollaborationShapeItemProvider.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/CollaborationShapeItemProvider.java54
1 files changed, 23 insertions, 31 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/CollaborationShapeItemProvider.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/CollaborationShapeItemProvider.java
index d7f824847d9..dc5ab8b1fa2 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/CollaborationShapeItemProvider.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/CollaborationShapeItemProvider.java
@@ -11,7 +11,6 @@
*/
package org.eclipse.papyrus.umldi.provider;
-
import java.util.Collection;
import java.util.List;
@@ -31,13 +30,16 @@ import org.eclipse.papyrus.umldi.UMLDIPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.umldi.CollaborationShape} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class CollaborationShapeItemProvider extends ClassifierWithOperationsShapeItemProvider {
+
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public CollaborationShapeItemProvider(AdapterFactory adapterFactory) {
@@ -48,13 +50,13 @@ public class CollaborationShapeItemProvider extends ClassifierWithOperationsShap
* 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;
}
@@ -65,14 +67,15 @@ public class CollaborationShapeItemProvider extends ClassifierWithOperationsShap
* {@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) {
+ if(childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(UMLDIPackage.Literals.BEHAVIORED_CLASSIFIER_SHAPE__OWNED_BEHAVIOR_COMPARTMENT);
- childrenFeatures.add(UMLDIPackage.Literals.ELEMENT_WITH_INTERNAL_STRUCTURE_SHAPE__INTERNAL_STRUCTURE_COMPARTMENT);
+ childrenFeatures.add(UMLDIPackage.Literals.ELEMENT_WITH_STRUCTURE_SHAPE__STRUCTURE_COMPARTMENT);
childrenFeatures.add(UMLDIPackage.Literals.COLLABORATION_SHAPE__RECEPTION_COMPARTMENT);
}
return childrenFeatures;
@@ -81,13 +84,13 @@ public class CollaborationShapeItemProvider extends ClassifierWithOperationsShap
/**
* <!-- 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);
}
@@ -95,6 +98,7 @@ public class CollaborationShapeItemProvider extends ClassifierWithOperationsShap
* This returns CollaborationShape.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -106,32 +110,32 @@ public class CollaborationShapeItemProvider extends ClassifierWithOperationsShap
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
CollaborationShape collaborationShape = (CollaborationShape)object;
- return getString("_UI_CollaborationShape_type") + " " + collaborationShape.isUseClassifierNotation();
+ return getString("_UI_CollaborationShape_type") + " " + collaborationShape.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(CollaborationShape.class)) {
- case UMLDIPackage.COLLABORATION_SHAPE__OWNED_BEHAVIOR_COMPARTMENT:
- case UMLDIPackage.COLLABORATION_SHAPE__INTERNAL_STRUCTURE_COMPARTMENT:
- case UMLDIPackage.COLLABORATION_SHAPE__RECEPTION_COMPARTMENT:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ switch(notification.getFeatureID(CollaborationShape.class)) {
+ case UMLDIPackage.COLLABORATION_SHAPE__OWNED_BEHAVIOR_COMPARTMENT:
+ case UMLDIPackage.COLLABORATION_SHAPE__STRUCTURE_COMPARTMENT:
+ case UMLDIPackage.COLLABORATION_SHAPE__RECEPTION_COMPARTMENT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -141,26 +145,14 @@ public class CollaborationShapeItemProvider extends ClassifierWithOperationsShap
* 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.BEHAVIORED_CLASSIFIER_SHAPE__OWNED_BEHAVIOR_COMPARTMENT,
- UMLDIFactory.eINSTANCE.createOwnedBehaviorCompartment()));
-
- newChildDescriptors.add
- (createChildParameter
- (UMLDIPackage.Literals.ELEMENT_WITH_INTERNAL_STRUCTURE_SHAPE__INTERNAL_STRUCTURE_COMPARTMENT,
- UMLDIFactory.eINSTANCE.createInternalStructureCompartment()));
-
- newChildDescriptors.add
- (createChildParameter
- (UMLDIPackage.Literals.COLLABORATION_SHAPE__RECEPTION_COMPARTMENT,
- UMLDIFactory.eINSTANCE.createReceptionCompartment()));
+ newChildDescriptors.add(createChildParameter(UMLDIPackage.Literals.BEHAVIORED_CLASSIFIER_SHAPE__OWNED_BEHAVIOR_COMPARTMENT, UMLDIFactory.eINSTANCE.createOwnedBehaviorCompartment()));
+ newChildDescriptors.add(createChildParameter(UMLDIPackage.Literals.ELEMENT_WITH_STRUCTURE_SHAPE__STRUCTURE_COMPARTMENT, UMLDIFactory.eINSTANCE.createStructureCompartment()));
+ newChildDescriptors.add(createChildParameter(UMLDIPackage.Literals.COLLABORATION_SHAPE__RECEPTION_COMPARTMENT, UMLDIFactory.eINSTANCE.createReceptionCompartment()));
}
-
}

Back to the top