diff options
Diffstat (limited to 'plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.tooldef/src/org/eclipse/papyrus/gmf/tooldef/impl/MenuImpl.java')
-rw-r--r-- | plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.tooldef/src/org/eclipse/papyrus/gmf/tooldef/impl/MenuImpl.java | 166 |
1 files changed, 0 insertions, 166 deletions
diff --git a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.tooldef/src/org/eclipse/papyrus/gmf/tooldef/impl/MenuImpl.java b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.tooldef/src/org/eclipse/papyrus/gmf/tooldef/impl/MenuImpl.java deleted file mode 100644 index ca699fa977c..00000000000 --- a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.tooldef/src/org/eclipse/papyrus/gmf/tooldef/impl/MenuImpl.java +++ /dev/null @@ -1,166 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 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.tooldef.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.papyrus.gmf.tooldef.GMFToolPackage; -import org.eclipse.papyrus.gmf.tooldef.ItemBase; -import org.eclipse.papyrus.gmf.tooldef.Menu; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Menu</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.papyrus.gmf.tooldef.impl.MenuImpl#getItems <em>Items</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public abstract class MenuImpl extends EObjectImpl implements Menu { - - /** - * The cached value of the '{@link #getItems() <em>Items</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getItems() - * @generated - * @ordered - */ - protected EList<ItemBase> items; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MenuImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return GMFToolPackage.eINSTANCE.getMenu(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<ItemBase> getItems() { - if (items == null) { - items = new EObjectContainmentEList<ItemBase>(ItemBase.class, this, GMFToolPackage.MENU__ITEMS); - } - return items; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case GMFToolPackage.MENU__ITEMS: - return ((InternalEList<?>) getItems()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case GMFToolPackage.MENU__ITEMS: - return getItems(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case GMFToolPackage.MENU__ITEMS: - getItems().clear(); - getItems().addAll((Collection<? extends ItemBase>) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case GMFToolPackage.MENU__ITEMS: - getItems().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case GMFToolPackage.MENU__ITEMS: - return items != null && !items.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //MenuImpl |