diff options
Diffstat (limited to 'plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/CompositeWidgetImpl.java')
-rw-r--r-- | plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/CompositeWidgetImpl.java | 133 |
1 files changed, 52 insertions, 81 deletions
diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/CompositeWidgetImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/CompositeWidgetImpl.java index fd51bcfe5ca..3c4db466633 100644 --- a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/CompositeWidgetImpl.java +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/CompositeWidgetImpl.java @@ -37,9 +37,9 @@ import org.eclipse.papyrus.infra.properties.ui.Widget; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl#getLayout <em>Layout</em>}</li> - * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl#getWidgets <em>Widgets</em>}</li> - * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl#getWidgetType <em>Widget Type</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl#getLayout <em>Layout</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl#getWidgets <em>Widgets</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl#getWidgetType <em>Widget Type</em>}</li> * </ul> * * @generated @@ -49,7 +49,6 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { * The cached value of the '{@link #getLayout() <em>Layout</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getLayout() * @generated * @ordered @@ -60,7 +59,6 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { * The cached value of the '{@link #getWidgets() <em>Widgets</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getWidgets() * @generated * @ordered @@ -71,7 +69,6 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { * The cached value of the '{@link #getWidgetType() <em>Widget Type</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getWidgetType() * @generated * @ordered @@ -81,7 +78,6 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ protected CompositeWidgetImpl() { @@ -91,7 +87,6 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override @@ -102,7 +97,6 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override @@ -113,7 +107,6 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public NotificationChain basicSetLayout(Layout newLayout, NotificationChain msgs) { @@ -121,11 +114,7 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { layout = newLayout; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UiPackage.COMPOSITE_WIDGET__LAYOUT, oldLayout, newLayout); - if (msgs == null) { - msgs = notification; - } else { - msgs.add(notification); - } + if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } @@ -133,38 +122,32 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public void setLayout(Layout newLayout) { if (newLayout != layout) { NotificationChain msgs = null; - if (layout != null) { - msgs = ((InternalEObject) layout).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UiPackage.COMPOSITE_WIDGET__LAYOUT, null, msgs); - } - if (newLayout != null) { - msgs = ((InternalEObject) newLayout).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UiPackage.COMPOSITE_WIDGET__LAYOUT, null, msgs); - } + if (layout != null) + msgs = ((InternalEObject)layout).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UiPackage.COMPOSITE_WIDGET__LAYOUT, null, msgs); + if (newLayout != null) + msgs = ((InternalEObject)newLayout).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UiPackage.COMPOSITE_WIDGET__LAYOUT, null, msgs); msgs = basicSetLayout(newLayout, msgs); - if (msgs != null) { - msgs.dispatch(); - } - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.COMPOSITE_WIDGET__LAYOUT, newLayout, newLayout)); + if (msgs != null) msgs.dispatch(); } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.COMPOSITE_WIDGET__LAYOUT, newLayout, newLayout)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public EList<Widget> getWidgets() { if (widgets == null) { - widgets = new EObjectContainmentEList<>(Widget.class, this, UiPackage.COMPOSITE_WIDGET__WIDGETS); + widgets = new EObjectContainmentEList<Widget>(Widget.class, this, UiPackage.COMPOSITE_WIDGET__WIDGETS); } return widgets; } @@ -172,18 +155,16 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public CompositeWidgetType getWidgetType() { if (widgetType != null && widgetType.eIsProxy()) { - InternalEObject oldWidgetType = (InternalEObject) widgetType; - widgetType = (CompositeWidgetType) eResolveProxy(oldWidgetType); + InternalEObject oldWidgetType = (InternalEObject)widgetType; + widgetType = (CompositeWidgetType)eResolveProxy(oldWidgetType); if (widgetType != oldWidgetType) { - if (eNotificationRequired()) { + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE, oldWidgetType, widgetType)); - } } } return widgetType; @@ -192,7 +173,6 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public CompositeWidgetType basicGetWidgetType() { @@ -202,31 +182,28 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public void setWidgetType(CompositeWidgetType newWidgetType) { CompositeWidgetType oldWidgetType = widgetType; widgetType = newWidgetType; - if (eNotificationRequired()) { + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE, oldWidgetType, widgetType)); - } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { - case UiPackage.COMPOSITE_WIDGET__LAYOUT: - return basicSetLayout(null, msgs); - case UiPackage.COMPOSITE_WIDGET__WIDGETS: - return ((InternalEList<?>) getWidgets()).basicRemove(otherEnd, msgs); + case UiPackage.COMPOSITE_WIDGET__LAYOUT: + return basicSetLayout(null, msgs); + case UiPackage.COMPOSITE_WIDGET__WIDGETS: + return ((InternalEList<?>)getWidgets()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } @@ -234,21 +211,18 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { - case UiPackage.COMPOSITE_WIDGET__LAYOUT: - return getLayout(); - case UiPackage.COMPOSITE_WIDGET__WIDGETS: - return getWidgets(); - case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: - if (resolve) { - return getWidgetType(); - } - return basicGetWidgetType(); + case UiPackage.COMPOSITE_WIDGET__LAYOUT: + return getLayout(); + case UiPackage.COMPOSITE_WIDGET__WIDGETS: + return getWidgets(); + case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: + if (resolve) return getWidgetType(); + return basicGetWidgetType(); } return super.eGet(featureID, resolve, coreType); } @@ -256,23 +230,22 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { - case UiPackage.COMPOSITE_WIDGET__LAYOUT: - setLayout((Layout) newValue); - return; - case UiPackage.COMPOSITE_WIDGET__WIDGETS: - getWidgets().clear(); - getWidgets().addAll((Collection<? extends Widget>) newValue); - return; - case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: - setWidgetType((CompositeWidgetType) newValue); - return; + case UiPackage.COMPOSITE_WIDGET__LAYOUT: + setLayout((Layout)newValue); + return; + case UiPackage.COMPOSITE_WIDGET__WIDGETS: + getWidgets().clear(); + getWidgets().addAll((Collection<? extends Widget>)newValue); + return; + case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: + setWidgetType((CompositeWidgetType)newValue); + return; } super.eSet(featureID, newValue); } @@ -280,21 +253,20 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { - case UiPackage.COMPOSITE_WIDGET__LAYOUT: - setLayout((Layout) null); - return; - case UiPackage.COMPOSITE_WIDGET__WIDGETS: - getWidgets().clear(); - return; - case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: - setWidgetType((CompositeWidgetType) null); - return; + case UiPackage.COMPOSITE_WIDGET__LAYOUT: + setLayout((Layout)null); + return; + case UiPackage.COMPOSITE_WIDGET__WIDGETS: + getWidgets().clear(); + return; + case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: + setWidgetType((CompositeWidgetType)null); + return; } super.eUnset(featureID); } @@ -302,18 +274,17 @@ public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { - case UiPackage.COMPOSITE_WIDGET__LAYOUT: - return layout != null; - case UiPackage.COMPOSITE_WIDGET__WIDGETS: - return widgets != null && !widgets.isEmpty(); - case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: - return widgetType != null; + case UiPackage.COMPOSITE_WIDGET__LAYOUT: + return layout != null; + case UiPackage.COMPOSITE_WIDGET__WIDGETS: + return widgets != null && !widgets.isEmpty(); + case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: + return widgetType != null; } return super.eIsSet(featureID); } |