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/ClassifierShapeItemProvider.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/ClassifierShapeItemProvider.java60
1 files changed, 23 insertions, 37 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/ClassifierShapeItemProvider.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/ClassifierShapeItemProvider.java
index 0f0c539e475..14fc8109269 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/ClassifierShapeItemProvider.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/ClassifierShapeItemProvider.java
@@ -28,6 +28,7 @@ import org.eclipse.papyrus.umldi.UMLDIPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.umldi.ClassifierShape} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class ClassifierShapeItemProvider extends TemplateableElementShapeItemProvider {
@@ -36,6 +37,7 @@ public class ClassifierShapeItemProvider extends TemplateableElementShapeItemPro
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ClassifierShapeItemProvider(AdapterFactory adapterFactory) {
@@ -46,13 +48,13 @@ public class ClassifierShapeItemProvider extends TemplateableElementShapeItemPro
* 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);
-
addUseClassifierNotationPropertyDescriptor(object);
}
return itemPropertyDescriptors;
@@ -62,22 +64,11 @@ public class ClassifierShapeItemProvider extends TemplateableElementShapeItemPro
* This adds a property descriptor for the Use Classifier Notation feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addUseClassifierNotationPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ClassifierShape_useClassifierNotation_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ClassifierShape_useClassifierNotation_feature", "_UI_ClassifierShape_type"),
- UMLDIPackage.Literals.CLASSIFIER_SHAPE__USE_CLASSIFIER_NOTATION,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ClassifierShape_useClassifierNotation_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ClassifierShape_useClassifierNotation_feature", "_UI_ClassifierShape_type"), UMLDIPackage.Literals.CLASSIFIER_SHAPE__USE_CLASSIFIER_NOTATION, true, false, false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null));
}
/**
@@ -86,11 +77,12 @@ public class ClassifierShapeItemProvider extends TemplateableElementShapeItemPro
* {@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.CLASSIFIER_SHAPE__OWNED_USE_CASE_COMPARTMENT);
childrenFeatures.add(UMLDIPackage.Literals.CLASSIFIER_SHAPE__USE_CASE_COMPARTMENT);
@@ -101,13 +93,13 @@ public class ClassifierShapeItemProvider extends TemplateableElementShapeItemPro
/**
* <!-- 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);
}
@@ -115,12 +107,13 @@ public class ClassifierShapeItemProvider extends TemplateableElementShapeItemPro
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
ClassifierShape classifierShape = (ClassifierShape)object;
- return getString("_UI_ClassifierShape_type") + " " + classifierShape.isUseClassifierNotation();
+ return getString("_UI_ClassifierShape_type") + " " + classifierShape.isShowStereotypeAttributes();
}
/**
@@ -128,20 +121,20 @@ public class ClassifierShapeItemProvider extends TemplateableElementShapeItemPro
* 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(ClassifierShape.class)) {
- case UMLDIPackage.CLASSIFIER_SHAPE__USE_CLASSIFIER_NOTATION:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case UMLDIPackage.CLASSIFIER_SHAPE__OWNED_USE_CASE_COMPARTMENT:
- case UMLDIPackage.CLASSIFIER_SHAPE__USE_CASE_COMPARTMENT:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ switch(notification.getFeatureID(ClassifierShape.class)) {
+ case UMLDIPackage.CLASSIFIER_SHAPE__USE_CLASSIFIER_NOTATION:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case UMLDIPackage.CLASSIFIER_SHAPE__OWNED_USE_CASE_COMPARTMENT:
+ case UMLDIPackage.CLASSIFIER_SHAPE__USE_CASE_COMPARTMENT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -151,20 +144,13 @@ public class ClassifierShapeItemProvider extends TemplateableElementShapeItemPro
* 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.CLASSIFIER_SHAPE__OWNED_USE_CASE_COMPARTMENT,
- UMLDIFactory.eINSTANCE.createOwnedUseCaseCompartment()));
-
- newChildDescriptors.add
- (createChildParameter
- (UMLDIPackage.Literals.CLASSIFIER_SHAPE__USE_CASE_COMPARTMENT,
- UMLDIFactory.eINSTANCE.createUseCaseCompartment()));
+ newChildDescriptors.add(createChildParameter(UMLDIPackage.Literals.CLASSIFIER_SHAPE__OWNED_USE_CASE_COMPARTMENT, UMLDIFactory.eINSTANCE.createOwnedUseCaseCompartment()));
+ newChildDescriptors.add(createChildParameter(UMLDIPackage.Literals.CLASSIFIER_SHAPE__USE_CASE_COMPARTMENT, UMLDIFactory.eINSTANCE.createUseCaseCompartment()));
}
}

Back to the top