Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/views/properties/org.eclipse.papyrus.views.properties.model/src-gen/org/eclipse/papyrus/views/properties/ui/impl/ReferenceAttributeImpl.java')
-rw-r--r--plugins/views/properties/org.eclipse.papyrus.views.properties.model/src-gen/org/eclipse/papyrus/views/properties/ui/impl/ReferenceAttributeImpl.java64
1 files changed, 43 insertions, 21 deletions
diff --git a/plugins/views/properties/org.eclipse.papyrus.views.properties.model/src-gen/org/eclipse/papyrus/views/properties/ui/impl/ReferenceAttributeImpl.java b/plugins/views/properties/org.eclipse.papyrus.views.properties.model/src-gen/org/eclipse/papyrus/views/properties/ui/impl/ReferenceAttributeImpl.java
index 65f1660e217..a75296893d8 100644
--- a/plugins/views/properties/org.eclipse.papyrus.views.properties.model/src-gen/org/eclipse/papyrus/views/properties/ui/impl/ReferenceAttributeImpl.java
+++ b/plugins/views/properties/org.eclipse.papyrus.views.properties.model/src-gen/org/eclipse/papyrus/views/properties/ui/impl/ReferenceAttributeImpl.java
@@ -22,7 +22,7 @@ import org.eclipse.papyrus.views.properties.ui.UiPackage;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.views.properties.ui.impl.ReferenceAttributeImpl#getValue <em>Value</em>}</li>
+ * <li>{@link org.eclipse.papyrus.views.properties.ui.impl.ReferenceAttributeImpl#getValue <em>Value</em>}</li>
* </ul>
* </p>
*
@@ -33,6 +33,7 @@ public class ReferenceAttributeImpl extends WidgetAttributeImpl implements Refer
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getValue()
* @generated
* @ordered
@@ -42,6 +43,7 @@ public class ReferenceAttributeImpl extends WidgetAttributeImpl implements Refer
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ReferenceAttributeImpl() {
@@ -51,6 +53,7 @@ public class ReferenceAttributeImpl extends WidgetAttributeImpl implements Refer
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -61,8 +64,10 @@ public class ReferenceAttributeImpl extends WidgetAttributeImpl implements Refer
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public UIComponent getValue() {
return value;
}
@@ -70,6 +75,7 @@ public class ReferenceAttributeImpl extends WidgetAttributeImpl implements Refer
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetValue(UIComponent newValue, NotificationChain msgs) {
@@ -77,7 +83,11 @@ public class ReferenceAttributeImpl extends WidgetAttributeImpl implements Refer
value = newValue;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UiPackage.REFERENCE_ATTRIBUTE__VALUE, oldValue, newValue);
- if (msgs == null) msgs = notification; else msgs.add(notification);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
}
return msgs;
}
@@ -85,32 +95,40 @@ public class ReferenceAttributeImpl extends WidgetAttributeImpl implements Refer
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setValue(UIComponent newValue) {
if (newValue != value) {
NotificationChain msgs = null;
- if (value != null)
- msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UiPackage.REFERENCE_ATTRIBUTE__VALUE, null, msgs);
- if (newValue != null)
- msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UiPackage.REFERENCE_ATTRIBUTE__VALUE, null, msgs);
+ if (value != null) {
+ msgs = ((InternalEObject) value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UiPackage.REFERENCE_ATTRIBUTE__VALUE, null, msgs);
+ }
+ if (newValue != null) {
+ msgs = ((InternalEObject) newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UiPackage.REFERENCE_ATTRIBUTE__VALUE, null, msgs);
+ }
msgs = basicSetValue(newValue, msgs);
- if (msgs != null) msgs.dispatch();
+ if (msgs != null) {
+ msgs.dispatch();
+ }
}
- else if (eNotificationRequired())
+ else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.REFERENCE_ATTRIBUTE__VALUE, newValue, newValue));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case UiPackage.REFERENCE_ATTRIBUTE__VALUE:
- return basicSetValue(null, msgs);
+ case UiPackage.REFERENCE_ATTRIBUTE__VALUE:
+ return basicSetValue(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -118,13 +136,14 @@ public class ReferenceAttributeImpl extends WidgetAttributeImpl implements Refer
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case UiPackage.REFERENCE_ATTRIBUTE__VALUE:
- return getValue();
+ case UiPackage.REFERENCE_ATTRIBUTE__VALUE:
+ return getValue();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -132,14 +151,15 @@ public class ReferenceAttributeImpl extends WidgetAttributeImpl implements Refer
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case UiPackage.REFERENCE_ATTRIBUTE__VALUE:
- setValue((UIComponent)newValue);
- return;
+ case UiPackage.REFERENCE_ATTRIBUTE__VALUE:
+ setValue((UIComponent) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -147,14 +167,15 @@ public class ReferenceAttributeImpl extends WidgetAttributeImpl implements Refer
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case UiPackage.REFERENCE_ATTRIBUTE__VALUE:
- setValue((UIComponent)null);
- return;
+ case UiPackage.REFERENCE_ATTRIBUTE__VALUE:
+ setValue((UIComponent) null);
+ return;
}
super.eUnset(featureID);
}
@@ -162,15 +183,16 @@ public class ReferenceAttributeImpl extends WidgetAttributeImpl implements Refer
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case UiPackage.REFERENCE_ATTRIBUTE__VALUE:
- return value != null;
+ case UiPackage.REFERENCE_ATTRIBUTE__VALUE:
+ return value != null;
}
return super.eIsSet(featureID);
}
-} //ReferenceAttributeImpl
+} // ReferenceAttributeImpl

Back to the top