Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.emf.teneo.samples/src/org/eclipse/gmf/runtime/notation/impl/ImageBufferStyleImpl.java')
-rwxr-xr-xtests/org.eclipse.emf.teneo.samples/src/org/eclipse/gmf/runtime/notation/impl/ImageBufferStyleImpl.java328
1 files changed, 169 insertions, 159 deletions
diff --git a/tests/org.eclipse.emf.teneo.samples/src/org/eclipse/gmf/runtime/notation/impl/ImageBufferStyleImpl.java b/tests/org.eclipse.emf.teneo.samples/src/org/eclipse/gmf/runtime/notation/impl/ImageBufferStyleImpl.java
index 27c238ae1..dcd889458 100755
--- a/tests/org.eclipse.emf.teneo.samples/src/org/eclipse/gmf/runtime/notation/impl/ImageBufferStyleImpl.java
+++ b/tests/org.eclipse.emf.teneo.samples/src/org/eclipse/gmf/runtime/notation/impl/ImageBufferStyleImpl.java
@@ -22,190 +22,200 @@ import org.eclipse.gmf.runtime.notation.ImageBufferStyle;
import org.eclipse.gmf.runtime.notation.NotationPackage;
/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Image Buffer Style</b></em>'.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Image Buffer Style</b></em>
+ * '. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.gmf.runtime.notation.impl.ImageBufferStyleImpl#getImageBuffer <em>Image Buffer</em>}</li>
+ * <li>{@link org.eclipse.gmf.runtime.notation.impl.ImageBufferStyleImpl#getImageBuffer <em>Image
+ * Buffer</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
/*
* @canBeSeenBy org.eclipse.gmf.runtime.notation.*
*/
public class ImageBufferStyleImpl extends ImageStyleImpl implements ImageBufferStyle {
- /**
- * The cached value of the '{@link #getImageBuffer() <em>Image Buffer</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getImageBuffer()
- * @generated
- * @ordered
- */
+ /**
+ * The cached value of the '{@link #getImageBuffer() <em>Image Buffer</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getImageBuffer()
+ * @generated
+ * @ordered
+ */
protected Image imageBuffer = null;
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
protected ImageBufferStyleImpl() {
- super();
- }
+ super();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
protected EClass eStaticClass() {
- return NotationPackage.Literals.IMAGE_BUFFER_STYLE;
- }
+ return NotationPackage.Literals.IMAGE_BUFFER_STYLE;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public Image getImageBuffer() {
- return imageBuffer;
- }
+ return imageBuffer;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetImageBuffer(Image newImageBuffer, NotificationChain msgs) {
- Image oldImageBuffer = imageBuffer;
- imageBuffer = newImageBuffer;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER, oldImageBuffer, newImageBuffer);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
+ Image oldImageBuffer = imageBuffer;
+ imageBuffer = newImageBuffer;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER, oldImageBuffer, newImageBuffer);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public void setImageBuffer(Image newImageBuffer) {
- if (newImageBuffer != imageBuffer) {
- NotificationChain msgs = null;
- if (imageBuffer != null)
- msgs = ((InternalEObject)imageBuffer).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER, null, msgs);
- if (newImageBuffer != null)
- msgs = ((InternalEObject)newImageBuffer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER, null, msgs);
- msgs = basicSetImageBuffer(newImageBuffer, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER, newImageBuffer, newImageBuffer));
- }
+ if (newImageBuffer != imageBuffer) {
+ NotificationChain msgs = null;
+ if (imageBuffer != null)
+ msgs = ((InternalEObject) imageBuffer).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER, null, msgs);
+ if (newImageBuffer != null)
+ msgs = ((InternalEObject) newImageBuffer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER, null, msgs);
+ msgs = basicSetImageBuffer(newImageBuffer, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ } else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER, newImageBuffer, newImageBuffer));
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NotationPackage.IMAGE_BUFFER_STYLE__CROP_BOUND:
- return basicSetCropBound(null, msgs);
- case NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER:
- return basicSetImageBuffer(null, msgs);
- }
- return eDynamicInverseRemove(otherEnd, featureID, msgs);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
+ NotificationChain msgs) {
+ switch (featureID) {
+ case NotationPackage.IMAGE_BUFFER_STYLE__CROP_BOUND:
+ return basicSetCropBound(null, msgs);
+ case NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER:
+ return basicSetImageBuffer(null, msgs);
+ }
+ return eDynamicInverseRemove(otherEnd, featureID, msgs);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NotationPackage.IMAGE_BUFFER_STYLE__ANTI_ALIAS:
- return getAntiAlias();
- case NotationPackage.IMAGE_BUFFER_STYLE__MAINTAIN_ASPECT_RATIO:
- return getMaintainAspectRatio();
- case NotationPackage.IMAGE_BUFFER_STYLE__CROP_BOUND:
- return getCropBound();
- case NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER:
- return getImageBuffer();
- }
- return eDynamicGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NotationPackage.IMAGE_BUFFER_STYLE__ANTI_ALIAS:
+ return getAntiAlias();
+ case NotationPackage.IMAGE_BUFFER_STYLE__MAINTAIN_ASPECT_RATIO:
+ return getMaintainAspectRatio();
+ case NotationPackage.IMAGE_BUFFER_STYLE__CROP_BOUND:
+ return getCropBound();
+ case NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER:
+ return getImageBuffer();
+ }
+ return eDynamicGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NotationPackage.IMAGE_BUFFER_STYLE__ANTI_ALIAS:
- setAntiAlias((Boolean)newValue);
- return;
- case NotationPackage.IMAGE_BUFFER_STYLE__MAINTAIN_ASPECT_RATIO:
- setMaintainAspectRatio((Boolean)newValue);
- return;
- case NotationPackage.IMAGE_BUFFER_STYLE__CROP_BOUND:
- setCropBound((Bounds)newValue);
- return;
- case NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER:
- setImageBuffer((Image)newValue);
- return;
- }
- eDynamicSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NotationPackage.IMAGE_BUFFER_STYLE__ANTI_ALIAS:
+ setAntiAlias((Boolean) newValue);
+ return;
+ case NotationPackage.IMAGE_BUFFER_STYLE__MAINTAIN_ASPECT_RATIO:
+ setMaintainAspectRatio((Boolean) newValue);
+ return;
+ case NotationPackage.IMAGE_BUFFER_STYLE__CROP_BOUND:
+ setCropBound((Bounds) newValue);
+ return;
+ case NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER:
+ setImageBuffer((Image) newValue);
+ return;
+ }
+ eDynamicSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case NotationPackage.IMAGE_BUFFER_STYLE__ANTI_ALIAS:
- setAntiAlias(ANTI_ALIAS_EDEFAULT);
- return;
- case NotationPackage.IMAGE_BUFFER_STYLE__MAINTAIN_ASPECT_RATIO:
- setMaintainAspectRatio(MAINTAIN_ASPECT_RATIO_EDEFAULT);
- return;
- case NotationPackage.IMAGE_BUFFER_STYLE__CROP_BOUND:
- setCropBound((Bounds)null);
- return;
- case NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER:
- setImageBuffer((Image)null);
- return;
- }
- eDynamicUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NotationPackage.IMAGE_BUFFER_STYLE__ANTI_ALIAS:
+ setAntiAlias(ANTI_ALIAS_EDEFAULT);
+ return;
+ case NotationPackage.IMAGE_BUFFER_STYLE__MAINTAIN_ASPECT_RATIO:
+ setMaintainAspectRatio(MAINTAIN_ASPECT_RATIO_EDEFAULT);
+ return;
+ case NotationPackage.IMAGE_BUFFER_STYLE__CROP_BOUND:
+ setCropBound((Bounds) null);
+ return;
+ case NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER:
+ setImageBuffer((Image) null);
+ return;
+ }
+ eDynamicUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NotationPackage.IMAGE_BUFFER_STYLE__ANTI_ALIAS:
- return ANTI_ALIAS_EDEFAULT == null ? antiAlias != null : !ANTI_ALIAS_EDEFAULT.equals(antiAlias);
- case NotationPackage.IMAGE_BUFFER_STYLE__MAINTAIN_ASPECT_RATIO:
- return MAINTAIN_ASPECT_RATIO_EDEFAULT == null ? maintainAspectRatio != null : !MAINTAIN_ASPECT_RATIO_EDEFAULT.equals(maintainAspectRatio);
- case NotationPackage.IMAGE_BUFFER_STYLE__CROP_BOUND:
- return cropBound != null;
- case NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER:
- return imageBuffer != null;
- }
- return eDynamicIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NotationPackage.IMAGE_BUFFER_STYLE__ANTI_ALIAS:
+ return ANTI_ALIAS_EDEFAULT == null ? antiAlias != null : !ANTI_ALIAS_EDEFAULT
+ .equals(antiAlias);
+ case NotationPackage.IMAGE_BUFFER_STYLE__MAINTAIN_ASPECT_RATIO:
+ return MAINTAIN_ASPECT_RATIO_EDEFAULT == null ? maintainAspectRatio != null
+ : !MAINTAIN_ASPECT_RATIO_EDEFAULT.equals(maintainAspectRatio);
+ case NotationPackage.IMAGE_BUFFER_STYLE__CROP_BOUND:
+ return cropBound != null;
+ case NotationPackage.IMAGE_BUFFER_STYLE__IMAGE_BUFFER:
+ return imageBuffer != null;
+ }
+ return eDynamicIsSet(featureID);
+ }
-} //ImageBufferStyleImpl
+} // ImageBufferStyleImpl

Back to the top