/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public MIDisplay createDisplay() { MDisplay display = new MDisplay(); return display; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case MIAnalysisMetaModelPackage.DISPLAY__PARENT: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return basicSetParent((MIPlugin)otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetParent(MIPlugin newParent, NotificationChain msgs) { msgs = eBasicSetContainer((InternalEObject)newParent, MIAnalysisMetaModelPackage.DISPLAY__PARENT, msgs); return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public MIPlugin getParent() { if (eContainerFeatureID() != MIAnalysisMetaModelPackage.DISPLAY__PARENT) return null; return (MIPlugin)eInternalContainer(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setName(String newName) { String oldName = name; name = newName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MIAnalysisMetaModelPackage.DISPLAY__NAME, oldName, name)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setParent(MIPlugin newParent) { if (newParent != eInternalContainer() || (eContainerFeatureID() != MIAnalysisMetaModelPackage.DISPLAY__PARENT && newParent != null)) { if (EcoreUtil.isAncestor(this, newParent)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newParent != null) msgs = ((InternalEObject)newParent).eInverseAdd(this, MIAnalysisMetaModelPackage.PLUGIN__DISPLAYS, MIPlugin.class, msgs); msgs = basicSetParent(newParent, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MIAnalysisMetaModelPackage.DISPLAY__PARENT, newParent, newParent)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case MIAnalysisMetaModelPackage.DISPLAY__NAME: return getName(); case MIAnalysisMetaModelPackage.DISPLAY__PARENT: return getParent(); case MIAnalysisMetaModelPackage.DISPLAY__ID: return getId(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case MIAnalysisMetaModelPackage.DISPLAY__PARENT: return basicSetParent(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (name: "); result.append(name); result.append(", id: "); result.append(id); result.append(')'); return result.toString(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setParent(MIPlugin newParent) { if (newParent != eInternalContainer() || (eContainerFeatureID() != MIAnalysisMetaModelPackage.DISPLAY__PARENT && newParent != null)) { if (EcoreUtil.isAncestor(this, newParent)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newParent != null) msgs = ((InternalEObject)newParent).eInverseAdd(this, MIAnalysisMetaModelPackage.PLUGIN__DISPLAYS, MIPlugin.class, msgs); msgs = basicSetParent(newParent, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MIAnalysisMetaModelPackage.DISPLAY__PARENT, newParent, newParent)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case MIAnalysisMetaModelPackage.DISPLAY__NAME: return getName(); case MIAnalysisMetaModelPackage.DISPLAY__PARENT: return getParent(); case MIAnalysisMetaModelPackage.DISPLAY__ID: return getId(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setId(String newId) { String oldId = id; id = newId; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MIAnalysisMetaModelPackage.DISPLAY__ID, oldId, id)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public MIPlugin getParent() { if (eContainerFeatureID() != MIAnalysisMetaModelPackage.DISPLAY__PARENT) return null; return (MIPlugin)eInternalContainer(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case MIAnalysisMetaModelPackage.DISPLAY__PARENT: return basicSetParent(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (name: "); result.append(name); result.append(", id: "); result.append(id); result.append(')'); return result.toString(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case MIAnalysisMetaModelPackage.DISPLAY__PARENT: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return basicSetParent((MIPlugin)otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setName(String newName) { String oldName = name; name = newName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MIAnalysisMetaModelPackage.DISPLAY__NAME, oldName, name)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { switch (eContainerFeatureID()) { case MIAnalysisMetaModelPackage.DISPLAY__PARENT: return eInternalContainer().eInverseRemove(this, MIAnalysisMetaModelPackage.PLUGIN__DISPLAYS, MIPlugin.class, msgs); } return super.eBasicRemoveFromContainerFeature(msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public MIDisplay createDisplay() { MDisplay display = new MDisplay(); return display; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetParent(MIPlugin newParent, NotificationChain msgs) { msgs = eBasicSetContainer((InternalEObject)newParent, MIAnalysisMetaModelPackage.DISPLAY__PARENT, msgs); return msgs; }