| /** |
| * Copyright (c) 2014,2016 Loetz GmbH&Co.KG (Heidelberg) |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http{//www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Loetz GmbH&Co.KG - Initial implementation |
| * |
| */ |
| package org.eclipse.osbp.xtext.menu.impl; |
| |
| import java.util.Collection; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| 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.ENotificationImpl; |
| |
| import org.eclipse.emf.ecore.util.EObjectContainmentEList; |
| import org.eclipse.emf.ecore.util.InternalEList; |
| |
| import org.eclipse.osbp.xtext.blip.Blip; |
| |
| import org.eclipse.osbp.xtext.dialogdsl.Dialog; |
| |
| import org.eclipse.osbp.xtext.menu.MenuDslPackage; |
| import org.eclipse.osbp.xtext.menu.MenuEntry; |
| |
| import org.eclipse.osbp.xtext.perspective.Perspective; |
| |
| import org.eclipse.osbp.xtext.table.Table; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Menu Entry</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * <ul> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#getEntryid <em>Entryid</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#isHasImage <em>Has Image</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#getImage <em>Image</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#isDescription <em>Description</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#getDescriptionValue <em>Description Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#getSubentries <em>Subentries</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#isHasProcess <em>Has Process</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#getProcess <em>Process</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#isHasPerspective <em>Has Perspective</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#getPerspective <em>Perspective</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#isShowBadge <em>Show Badge</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#isHasTable <em>Has Table</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#getTable <em>Table</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#isHasDialog <em>Has Dialog</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#getDialog <em>Dialog</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#isHasUserFilter <em>Has User Filter</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.menu.impl.MenuEntryImpl#isHasKeyBinding <em>Has Key Binding</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @generated |
| */ |
| public class MenuEntryImpl extends MenuLazyResolverImpl implements MenuEntry { |
| /** |
| * The default value of the '{@link #getEntryid() <em>Entryid</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getEntryid() |
| * @generated |
| * @ordered |
| */ |
| protected static final String ENTRYID_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getEntryid() <em>Entryid</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getEntryid() |
| * @generated |
| * @ordered |
| */ |
| protected String entryid = ENTRYID_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isHasImage() <em>Has Image</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasImage() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_IMAGE_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasImage() <em>Has Image</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasImage() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasImage = HAS_IMAGE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getImage() <em>Image</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getImage() |
| * @generated |
| * @ordered |
| */ |
| protected static final String IMAGE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getImage() <em>Image</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getImage() |
| * @generated |
| * @ordered |
| */ |
| protected String image = IMAGE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isDescription() <em>Description</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isDescription() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean DESCRIPTION_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isDescription() <em>Description</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isDescription() |
| * @generated |
| * @ordered |
| */ |
| protected boolean description = DESCRIPTION_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getDescriptionValue() <em>Description Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDescriptionValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final String DESCRIPTION_VALUE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getDescriptionValue() <em>Description Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDescriptionValue() |
| * @generated |
| * @ordered |
| */ |
| protected String descriptionValue = DESCRIPTION_VALUE_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getSubentries() <em>Subentries</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSubentries() |
| * @generated |
| * @ordered |
| */ |
| protected EList<MenuEntry> subentries; |
| |
| /** |
| * The default value of the '{@link #isHasProcess() <em>Has Process</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasProcess() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_PROCESS_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasProcess() <em>Has Process</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasProcess() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasProcess = HAS_PROCESS_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getProcess() <em>Process</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getProcess() |
| * @generated |
| * @ordered |
| */ |
| protected Blip process; |
| |
| /** |
| * The default value of the '{@link #isHasPerspective() <em>Has Perspective</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasPerspective() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_PERSPECTIVE_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasPerspective() <em>Has Perspective</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasPerspective() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasPerspective = HAS_PERSPECTIVE_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getPerspective() <em>Perspective</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPerspective() |
| * @generated |
| * @ordered |
| */ |
| protected Perspective perspective; |
| |
| /** |
| * The default value of the '{@link #isShowBadge() <em>Show Badge</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isShowBadge() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean SHOW_BADGE_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isShowBadge() <em>Show Badge</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isShowBadge() |
| * @generated |
| * @ordered |
| */ |
| protected boolean showBadge = SHOW_BADGE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isHasTable() <em>Has Table</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasTable() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_TABLE_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasTable() <em>Has Table</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasTable() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasTable = HAS_TABLE_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getTable() <em>Table</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTable() |
| * @generated |
| * @ordered |
| */ |
| protected Table table; |
| |
| /** |
| * The default value of the '{@link #isHasDialog() <em>Has Dialog</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasDialog() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_DIALOG_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasDialog() <em>Has Dialog</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasDialog() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasDialog = HAS_DIALOG_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getDialog() <em>Dialog</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDialog() |
| * @generated |
| * @ordered |
| */ |
| protected Dialog dialog; |
| |
| /** |
| * The default value of the '{@link #isHasUserFilter() <em>Has User Filter</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasUserFilter() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_USER_FILTER_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasUserFilter() <em>Has User Filter</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasUserFilter() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasUserFilter = HAS_USER_FILTER_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isHasKeyBinding() <em>Has Key Binding</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasKeyBinding() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_KEY_BINDING_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasKeyBinding() <em>Has Key Binding</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasKeyBinding() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasKeyBinding = HAS_KEY_BINDING_EDEFAULT; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected MenuEntryImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return MenuDslPackage.Literals.MENU_ENTRY; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getEntryid() { |
| return entryid; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setEntryid(String newEntryid) { |
| String oldEntryid = entryid; |
| entryid = newEntryid; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__ENTRYID, oldEntryid, entryid)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasImage() { |
| return hasImage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasImage(boolean newHasImage) { |
| boolean oldHasImage = hasImage; |
| hasImage = newHasImage; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__HAS_IMAGE, oldHasImage, hasImage)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getImage() { |
| return image; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setImage(String newImage) { |
| String oldImage = image; |
| image = newImage; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__IMAGE, oldImage, image)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isDescription() { |
| return description; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDescription(boolean newDescription) { |
| boolean oldDescription = description; |
| description = newDescription; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__DESCRIPTION, oldDescription, description)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getDescriptionValue() { |
| return descriptionValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDescriptionValue(String newDescriptionValue) { |
| String oldDescriptionValue = descriptionValue; |
| descriptionValue = newDescriptionValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__DESCRIPTION_VALUE, oldDescriptionValue, descriptionValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<MenuEntry> getSubentries() { |
| if (subentries == null) { |
| subentries = new EObjectContainmentEList<MenuEntry>(MenuEntry.class, this, MenuDslPackage.MENU_ENTRY__SUBENTRIES); |
| } |
| return subentries; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasProcess() { |
| return hasProcess; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasProcess(boolean newHasProcess) { |
| boolean oldHasProcess = hasProcess; |
| hasProcess = newHasProcess; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__HAS_PROCESS, oldHasProcess, hasProcess)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Blip getProcess() { |
| if (process != null && process.eIsProxy()) { |
| InternalEObject oldProcess = (InternalEObject)process; |
| process = (Blip)eResolveProxy(oldProcess); |
| if (process != oldProcess) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, MenuDslPackage.MENU_ENTRY__PROCESS, oldProcess, process)); |
| } |
| } |
| return process; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Blip basicGetProcess() { |
| return process; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setProcess(Blip newProcess) { |
| Blip oldProcess = process; |
| process = newProcess; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__PROCESS, oldProcess, process)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasPerspective() { |
| return hasPerspective; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasPerspective(boolean newHasPerspective) { |
| boolean oldHasPerspective = hasPerspective; |
| hasPerspective = newHasPerspective; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__HAS_PERSPECTIVE, oldHasPerspective, hasPerspective)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Perspective getPerspective() { |
| if (perspective != null && perspective.eIsProxy()) { |
| InternalEObject oldPerspective = (InternalEObject)perspective; |
| perspective = (Perspective)eResolveProxy(oldPerspective); |
| if (perspective != oldPerspective) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, MenuDslPackage.MENU_ENTRY__PERSPECTIVE, oldPerspective, perspective)); |
| } |
| } |
| return perspective; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Perspective basicGetPerspective() { |
| return perspective; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPerspective(Perspective newPerspective) { |
| Perspective oldPerspective = perspective; |
| perspective = newPerspective; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__PERSPECTIVE, oldPerspective, perspective)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isShowBadge() { |
| return showBadge; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setShowBadge(boolean newShowBadge) { |
| boolean oldShowBadge = showBadge; |
| showBadge = newShowBadge; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__SHOW_BADGE, oldShowBadge, showBadge)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasTable() { |
| return hasTable; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasTable(boolean newHasTable) { |
| boolean oldHasTable = hasTable; |
| hasTable = newHasTable; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__HAS_TABLE, oldHasTable, hasTable)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Table getTable() { |
| if (table != null && table.eIsProxy()) { |
| InternalEObject oldTable = (InternalEObject)table; |
| table = (Table)eResolveProxy(oldTable); |
| if (table != oldTable) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, MenuDslPackage.MENU_ENTRY__TABLE, oldTable, table)); |
| } |
| } |
| return table; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Table basicGetTable() { |
| return table; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setTable(Table newTable) { |
| Table oldTable = table; |
| table = newTable; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__TABLE, oldTable, table)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasDialog() { |
| return hasDialog; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasDialog(boolean newHasDialog) { |
| boolean oldHasDialog = hasDialog; |
| hasDialog = newHasDialog; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__HAS_DIALOG, oldHasDialog, hasDialog)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Dialog getDialog() { |
| if (dialog != null && dialog.eIsProxy()) { |
| InternalEObject oldDialog = (InternalEObject)dialog; |
| dialog = (Dialog)eResolveProxy(oldDialog); |
| if (dialog != oldDialog) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, MenuDslPackage.MENU_ENTRY__DIALOG, oldDialog, dialog)); |
| } |
| } |
| return dialog; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Dialog basicGetDialog() { |
| return dialog; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDialog(Dialog newDialog) { |
| Dialog oldDialog = dialog; |
| dialog = newDialog; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__DIALOG, oldDialog, dialog)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasUserFilter() { |
| return hasUserFilter; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasUserFilter(boolean newHasUserFilter) { |
| boolean oldHasUserFilter = hasUserFilter; |
| hasUserFilter = newHasUserFilter; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__HAS_USER_FILTER, oldHasUserFilter, hasUserFilter)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasKeyBinding() { |
| return hasKeyBinding; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasKeyBinding(boolean newHasKeyBinding) { |
| boolean oldHasKeyBinding = hasKeyBinding; |
| hasKeyBinding = newHasKeyBinding; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, MenuDslPackage.MENU_ENTRY__HAS_KEY_BINDING, oldHasKeyBinding, hasKeyBinding)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case MenuDslPackage.MENU_ENTRY__SUBENTRIES: |
| return ((InternalEList<?>)getSubentries()).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 MenuDslPackage.MENU_ENTRY__ENTRYID: |
| return getEntryid(); |
| case MenuDslPackage.MENU_ENTRY__HAS_IMAGE: |
| return isHasImage(); |
| case MenuDslPackage.MENU_ENTRY__IMAGE: |
| return getImage(); |
| case MenuDslPackage.MENU_ENTRY__DESCRIPTION: |
| return isDescription(); |
| case MenuDslPackage.MENU_ENTRY__DESCRIPTION_VALUE: |
| return getDescriptionValue(); |
| case MenuDslPackage.MENU_ENTRY__SUBENTRIES: |
| return getSubentries(); |
| case MenuDslPackage.MENU_ENTRY__HAS_PROCESS: |
| return isHasProcess(); |
| case MenuDslPackage.MENU_ENTRY__PROCESS: |
| if (resolve) return getProcess(); |
| return basicGetProcess(); |
| case MenuDslPackage.MENU_ENTRY__HAS_PERSPECTIVE: |
| return isHasPerspective(); |
| case MenuDslPackage.MENU_ENTRY__PERSPECTIVE: |
| if (resolve) return getPerspective(); |
| return basicGetPerspective(); |
| case MenuDslPackage.MENU_ENTRY__SHOW_BADGE: |
| return isShowBadge(); |
| case MenuDslPackage.MENU_ENTRY__HAS_TABLE: |
| return isHasTable(); |
| case MenuDslPackage.MENU_ENTRY__TABLE: |
| if (resolve) return getTable(); |
| return basicGetTable(); |
| case MenuDslPackage.MENU_ENTRY__HAS_DIALOG: |
| return isHasDialog(); |
| case MenuDslPackage.MENU_ENTRY__DIALOG: |
| if (resolve) return getDialog(); |
| return basicGetDialog(); |
| case MenuDslPackage.MENU_ENTRY__HAS_USER_FILTER: |
| return isHasUserFilter(); |
| case MenuDslPackage.MENU_ENTRY__HAS_KEY_BINDING: |
| return isHasKeyBinding(); |
| } |
| 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 MenuDslPackage.MENU_ENTRY__ENTRYID: |
| setEntryid((String)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_IMAGE: |
| setHasImage((Boolean)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__IMAGE: |
| setImage((String)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__DESCRIPTION: |
| setDescription((Boolean)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__DESCRIPTION_VALUE: |
| setDescriptionValue((String)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__SUBENTRIES: |
| getSubentries().clear(); |
| getSubentries().addAll((Collection<? extends MenuEntry>)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_PROCESS: |
| setHasProcess((Boolean)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__PROCESS: |
| setProcess((Blip)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_PERSPECTIVE: |
| setHasPerspective((Boolean)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__PERSPECTIVE: |
| setPerspective((Perspective)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__SHOW_BADGE: |
| setShowBadge((Boolean)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_TABLE: |
| setHasTable((Boolean)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__TABLE: |
| setTable((Table)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_DIALOG: |
| setHasDialog((Boolean)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__DIALOG: |
| setDialog((Dialog)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_USER_FILTER: |
| setHasUserFilter((Boolean)newValue); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_KEY_BINDING: |
| setHasKeyBinding((Boolean)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case MenuDslPackage.MENU_ENTRY__ENTRYID: |
| setEntryid(ENTRYID_EDEFAULT); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_IMAGE: |
| setHasImage(HAS_IMAGE_EDEFAULT); |
| return; |
| case MenuDslPackage.MENU_ENTRY__IMAGE: |
| setImage(IMAGE_EDEFAULT); |
| return; |
| case MenuDslPackage.MENU_ENTRY__DESCRIPTION: |
| setDescription(DESCRIPTION_EDEFAULT); |
| return; |
| case MenuDslPackage.MENU_ENTRY__DESCRIPTION_VALUE: |
| setDescriptionValue(DESCRIPTION_VALUE_EDEFAULT); |
| return; |
| case MenuDslPackage.MENU_ENTRY__SUBENTRIES: |
| getSubentries().clear(); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_PROCESS: |
| setHasProcess(HAS_PROCESS_EDEFAULT); |
| return; |
| case MenuDslPackage.MENU_ENTRY__PROCESS: |
| setProcess((Blip)null); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_PERSPECTIVE: |
| setHasPerspective(HAS_PERSPECTIVE_EDEFAULT); |
| return; |
| case MenuDslPackage.MENU_ENTRY__PERSPECTIVE: |
| setPerspective((Perspective)null); |
| return; |
| case MenuDslPackage.MENU_ENTRY__SHOW_BADGE: |
| setShowBadge(SHOW_BADGE_EDEFAULT); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_TABLE: |
| setHasTable(HAS_TABLE_EDEFAULT); |
| return; |
| case MenuDslPackage.MENU_ENTRY__TABLE: |
| setTable((Table)null); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_DIALOG: |
| setHasDialog(HAS_DIALOG_EDEFAULT); |
| return; |
| case MenuDslPackage.MENU_ENTRY__DIALOG: |
| setDialog((Dialog)null); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_USER_FILTER: |
| setHasUserFilter(HAS_USER_FILTER_EDEFAULT); |
| return; |
| case MenuDslPackage.MENU_ENTRY__HAS_KEY_BINDING: |
| setHasKeyBinding(HAS_KEY_BINDING_EDEFAULT); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case MenuDslPackage.MENU_ENTRY__ENTRYID: |
| return ENTRYID_EDEFAULT == null ? entryid != null : !ENTRYID_EDEFAULT.equals(entryid); |
| case MenuDslPackage.MENU_ENTRY__HAS_IMAGE: |
| return hasImage != HAS_IMAGE_EDEFAULT; |
| case MenuDslPackage.MENU_ENTRY__IMAGE: |
| return IMAGE_EDEFAULT == null ? image != null : !IMAGE_EDEFAULT.equals(image); |
| case MenuDslPackage.MENU_ENTRY__DESCRIPTION: |
| return description != DESCRIPTION_EDEFAULT; |
| case MenuDslPackage.MENU_ENTRY__DESCRIPTION_VALUE: |
| return DESCRIPTION_VALUE_EDEFAULT == null ? descriptionValue != null : !DESCRIPTION_VALUE_EDEFAULT.equals(descriptionValue); |
| case MenuDslPackage.MENU_ENTRY__SUBENTRIES: |
| return subentries != null && !subentries.isEmpty(); |
| case MenuDslPackage.MENU_ENTRY__HAS_PROCESS: |
| return hasProcess != HAS_PROCESS_EDEFAULT; |
| case MenuDslPackage.MENU_ENTRY__PROCESS: |
| return process != null; |
| case MenuDslPackage.MENU_ENTRY__HAS_PERSPECTIVE: |
| return hasPerspective != HAS_PERSPECTIVE_EDEFAULT; |
| case MenuDslPackage.MENU_ENTRY__PERSPECTIVE: |
| return perspective != null; |
| case MenuDslPackage.MENU_ENTRY__SHOW_BADGE: |
| return showBadge != SHOW_BADGE_EDEFAULT; |
| case MenuDslPackage.MENU_ENTRY__HAS_TABLE: |
| return hasTable != HAS_TABLE_EDEFAULT; |
| case MenuDslPackage.MENU_ENTRY__TABLE: |
| return table != null; |
| case MenuDslPackage.MENU_ENTRY__HAS_DIALOG: |
| return hasDialog != HAS_DIALOG_EDEFAULT; |
| case MenuDslPackage.MENU_ENTRY__DIALOG: |
| return dialog != null; |
| case MenuDslPackage.MENU_ENTRY__HAS_USER_FILTER: |
| return hasUserFilter != HAS_USER_FILTER_EDEFAULT; |
| case MenuDslPackage.MENU_ENTRY__HAS_KEY_BINDING: |
| return hasKeyBinding != HAS_KEY_BINDING_EDEFAULT; |
| } |
| 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(" (entryid: "); |
| result.append(entryid); |
| result.append(", hasImage: "); |
| result.append(hasImage); |
| result.append(", image: "); |
| result.append(image); |
| result.append(", description: "); |
| result.append(description); |
| result.append(", descriptionValue: "); |
| result.append(descriptionValue); |
| result.append(", hasProcess: "); |
| result.append(hasProcess); |
| result.append(", hasPerspective: "); |
| result.append(hasPerspective); |
| result.append(", showBadge: "); |
| result.append(showBadge); |
| result.append(", hasTable: "); |
| result.append(hasTable); |
| result.append(", hasDialog: "); |
| result.append(hasDialog); |
| result.append(", hasUserFilter: "); |
| result.append(hasUserFilter); |
| result.append(", hasKeyBinding: "); |
| result.append(hasKeyBinding); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| } //MenuEntryImpl |