diff options
Diffstat (limited to 'plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.map/src/org/eclipse/papyrus/gmf/mappings/impl/VisualEffectMappingImpl.java')
-rw-r--r-- | plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.map/src/org/eclipse/papyrus/gmf/mappings/impl/VisualEffectMappingImpl.java | 301 |
1 files changed, 0 insertions, 301 deletions
diff --git a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.map/src/org/eclipse/papyrus/gmf/mappings/impl/VisualEffectMappingImpl.java b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.map/src/org/eclipse/papyrus/gmf/mappings/impl/VisualEffectMappingImpl.java deleted file mode 100644 index ddcb31561b4..00000000000 --- a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.map/src/org/eclipse/papyrus/gmf/mappings/impl/VisualEffectMappingImpl.java +++ /dev/null @@ -1,301 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005, 2020 Borland Software Corporation, CEA LIST, ARTAL - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Borland - initial API and implementation - * Aurelien Didier (ARTAL) - aurelien.didier51@gmail.com - Bug 569174 - ******************************************************************************/ -/** - * <copyright> - * </copyright> - * - * $Id$ - */ -package org.eclipse.papyrus.gmf.mappings.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.papyrus.gmf.gmfgraph.Pin; -import org.eclipse.papyrus.gmf.mappings.GMFMapPackage; -import org.eclipse.papyrus.gmf.mappings.MappingEntry; -import org.eclipse.papyrus.gmf.mappings.VisualEffectMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Visual Effect Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.papyrus.gmf.mappings.impl.VisualEffectMappingImpl#getDiagramPin <em>Diagram Pin</em>}</li> - * <li>{@link org.eclipse.papyrus.gmf.mappings.impl.VisualEffectMappingImpl#getOclExpression <em>Ocl Expression</em>}</li> - * <li>{@link org.eclipse.papyrus.gmf.mappings.impl.VisualEffectMappingImpl#getParentMapEntry <em>Parent Map Entry</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class VisualEffectMappingImpl extends EObjectImpl implements VisualEffectMapping { - /** - * The cached value of the '{@link #getDiagramPin() <em>Diagram Pin</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDiagramPin() - * @generated - * @ordered - */ - protected Pin diagramPin; - - /** - * The default value of the '{@link #getOclExpression() <em>Ocl Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getOclExpression() - * @generated - * @ordered - */ - protected static final String OCL_EXPRESSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getOclExpression() <em>Ocl Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getOclExpression() - * @generated - * @ordered - */ - protected String oclExpression = OCL_EXPRESSION_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected VisualEffectMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return GMFMapPackage.eINSTANCE.getVisualEffectMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Pin getDiagramPin() { - if (diagramPin != null && diagramPin.eIsProxy()) { - InternalEObject oldDiagramPin = (InternalEObject)diagramPin; - diagramPin = (Pin)eResolveProxy(oldDiagramPin); - if (diagramPin != oldDiagramPin) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, GMFMapPackage.VISUAL_EFFECT_MAPPING__DIAGRAM_PIN, oldDiagramPin, diagramPin)); - } - } - return diagramPin; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Pin basicGetDiagramPin() { - return diagramPin; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDiagramPin(Pin newDiagramPin) { - Pin oldDiagramPin = diagramPin; - diagramPin = newDiagramPin; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, GMFMapPackage.VISUAL_EFFECT_MAPPING__DIAGRAM_PIN, oldDiagramPin, diagramPin)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getOclExpression() { - return oclExpression; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setOclExpression(String newOclExpression) { - String oldOclExpression = oclExpression; - oclExpression = newOclExpression; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, GMFMapPackage.VISUAL_EFFECT_MAPPING__OCL_EXPRESSION, oldOclExpression, oclExpression)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MappingEntry getParentMapEntry() { - if (eContainerFeatureID() != GMFMapPackage.VISUAL_EFFECT_MAPPING__PARENT_MAP_ENTRY) return null; - return (MappingEntry)eContainer(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case GMFMapPackage.VISUAL_EFFECT_MAPPING__PARENT_MAP_ENTRY: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, GMFMapPackage.VISUAL_EFFECT_MAPPING__PARENT_MAP_ENTRY, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case GMFMapPackage.VISUAL_EFFECT_MAPPING__PARENT_MAP_ENTRY: - return eBasicSetContainer(null, GMFMapPackage.VISUAL_EFFECT_MAPPING__PARENT_MAP_ENTRY, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case GMFMapPackage.VISUAL_EFFECT_MAPPING__PARENT_MAP_ENTRY: - return eInternalContainer().eInverseRemove(this, GMFMapPackage.MAPPING_ENTRY__VISUAL_EFFECTS, MappingEntry.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case GMFMapPackage.VISUAL_EFFECT_MAPPING__DIAGRAM_PIN: - if (resolve) return getDiagramPin(); - return basicGetDiagramPin(); - case GMFMapPackage.VISUAL_EFFECT_MAPPING__OCL_EXPRESSION: - return getOclExpression(); - case GMFMapPackage.VISUAL_EFFECT_MAPPING__PARENT_MAP_ENTRY: - return getParentMapEntry(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case GMFMapPackage.VISUAL_EFFECT_MAPPING__DIAGRAM_PIN: - setDiagramPin((Pin)newValue); - return; - case GMFMapPackage.VISUAL_EFFECT_MAPPING__OCL_EXPRESSION: - setOclExpression((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case GMFMapPackage.VISUAL_EFFECT_MAPPING__DIAGRAM_PIN: - setDiagramPin((Pin)null); - return; - case GMFMapPackage.VISUAL_EFFECT_MAPPING__OCL_EXPRESSION: - setOclExpression(OCL_EXPRESSION_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case GMFMapPackage.VISUAL_EFFECT_MAPPING__DIAGRAM_PIN: - return diagramPin != null; - case GMFMapPackage.VISUAL_EFFECT_MAPPING__OCL_EXPRESSION: - return OCL_EXPRESSION_EDEFAULT == null ? oclExpression != null : !OCL_EXPRESSION_EDEFAULT.equals(oclExpression); - case GMFMapPackage.VISUAL_EFFECT_MAPPING__PARENT_MAP_ENTRY: - return getParentMapEntry() != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (oclExpression: "); - result.append(oclExpression); - result.append(')'); - return result.toString(); - } - -} //VisualEffectMappingImpl |