From 7d2fc4d712d7a64ffaa21d7012a8997a0968949b Mon Sep 17 00:00:00 2001 From: Florian Noyrit Date: Tue, 9 Jun 2015 14:47:06 +0200 Subject: Update DD plugins to fit mars build and add DD features Contributes Changes 48969, 48842, 48843, 48578 Change-Id: I0000000000000000000000000000000000000000--- .../papyrus/dd/dg/provider/MatrixItemProvider.java | 116 +++++---------------- 1 file changed, 26 insertions(+), 90 deletions(-) (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/MatrixItemProvider.java') diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/MatrixItemProvider.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/MatrixItemProvider.java index 5b59025fdd7..a600f5cc5a5 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/MatrixItemProvider.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit/src-gen/org/eclipse/papyrus/dd/dg/provider/MatrixItemProvider.java @@ -26,6 +26,7 @@ import org.eclipse.papyrus.dd.dg.Matrix; * This is the item provider adapter for a {@link org.eclipse.papyrus.dd.dg.Matrix} object. * + * * @generated */ public class MatrixItemProvider extends TransformItemProvider { @@ -48,9 +49,8 @@ public class MatrixItemProvider extends TransformItemProvider { */ @Override public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { + if(itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); - addAPropertyDescriptor(object); addBPropertyDescriptor(object); addCPropertyDescriptor(object); @@ -65,137 +65,72 @@ public class MatrixItemProvider extends TransformItemProvider { * This adds a property descriptor for the A feature. * + * * @generated */ protected void addAPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Matrix_a_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Matrix_a_feature", "_UI_Matrix_type"), - DGPackage.Literals.MATRIX__A, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Matrix_a_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Matrix_a_feature", "_UI_Matrix_type"), DGPackage.Literals.MATRIX__A, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); } /** * This adds a property descriptor for the B feature. * + * * @generated */ protected void addBPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Matrix_b_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Matrix_b_feature", "_UI_Matrix_type"), - DGPackage.Literals.MATRIX__B, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Matrix_b_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Matrix_b_feature", "_UI_Matrix_type"), DGPackage.Literals.MATRIX__B, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); } /** * This adds a property descriptor for the C feature. * + * * @generated */ protected void addCPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Matrix_c_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Matrix_c_feature", "_UI_Matrix_type"), - DGPackage.Literals.MATRIX__C, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Matrix_c_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Matrix_c_feature", "_UI_Matrix_type"), DGPackage.Literals.MATRIX__C, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); } /** * This adds a property descriptor for the D feature. * + * * @generated */ protected void addDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Matrix_d_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Matrix_d_feature", "_UI_Matrix_type"), - DGPackage.Literals.MATRIX__D, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Matrix_d_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Matrix_d_feature", "_UI_Matrix_type"), DGPackage.Literals.MATRIX__D, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); } /** * This adds a property descriptor for the E feature. * + * * @generated */ protected void addEPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Matrix_e_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Matrix_e_feature", "_UI_Matrix_type"), - DGPackage.Literals.MATRIX__E, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Matrix_e_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Matrix_e_feature", "_UI_Matrix_type"), DGPackage.Literals.MATRIX__E, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); } /** * This adds a property descriptor for the F feature. * + * * @generated */ protected void addFPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Matrix_f_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Matrix_f_feature", "_UI_Matrix_type"), - DGPackage.Literals.MATRIX__F, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Matrix_f_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Matrix_f_feature", "_UI_Matrix_type"), DGPackage.Literals.MATRIX__F, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); } /** * This returns Matrix.gif. * + * * @generated */ @Override @@ -207,6 +142,7 @@ public class MatrixItemProvider extends TransformItemProvider { * This returns the label text for the adapted class. * + * * @generated */ @Override @@ -220,21 +156,21 @@ public class MatrixItemProvider extends TransformItemProvider { * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * + * * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); - - switch (notification.getFeatureID(Matrix.class)) { - case DGPackage.MATRIX__A: - case DGPackage.MATRIX__B: - case DGPackage.MATRIX__C: - case DGPackage.MATRIX__D: - case DGPackage.MATRIX__E: - case DGPackage.MATRIX__F: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; + switch(notification.getFeatureID(Matrix.class)) { + case DGPackage.MATRIX__A: + case DGPackage.MATRIX__B: + case DGPackage.MATRIX__C: + case DGPackage.MATRIX__D: + case DGPackage.MATRIX__E: + case DGPackage.MATRIX__F: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; } super.notifyChanged(notification); } -- cgit v1.2.3