📄 optionsimpl.java
字号:
* @generated
*/
public OtherOption getOtherOption() {
return otherOption;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetOtherOption(OtherOption newOtherOption, NotificationChain msgs) {
OtherOption oldOtherOption = otherOption;
otherOption = newOtherOption;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OptionPackage.OPTIONS__OTHER_OPTION, oldOtherOption, newOtherOption);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOtherOption(OtherOption newOtherOption) {
if (newOtherOption != otherOption) {
NotificationChain msgs = null;
if (otherOption != null)
msgs = ((InternalEObject)otherOption).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OptionPackage.OPTIONS__OTHER_OPTION, null, msgs);
if (newOtherOption != null)
msgs = ((InternalEObject)newOtherOption).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OptionPackage.OPTIONS__OTHER_OPTION, null, msgs);
msgs = basicSetOtherOption(newOtherOption, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OptionPackage.OPTIONS__OTHER_OPTION, newOtherOption, newOtherOption));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SyncOption getSyncOption() {
return syncOption;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSyncOption(SyncOption newSyncOption, NotificationChain msgs) {
SyncOption oldSyncOption = syncOption;
syncOption = newSyncOption;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OptionPackage.OPTIONS__SYNC_OPTION, oldSyncOption, newSyncOption);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSyncOption(SyncOption newSyncOption) {
if (newSyncOption != syncOption) {
NotificationChain msgs = null;
if (syncOption != null)
msgs = ((InternalEObject)syncOption).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OptionPackage.OPTIONS__SYNC_OPTION, null, msgs);
if (newSyncOption != null)
msgs = ((InternalEObject)newSyncOption).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OptionPackage.OPTIONS__SYNC_OPTION, null, msgs);
msgs = basicSetSyncOption(newSyncOption, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OptionPackage.OPTIONS__SYNC_OPTION, newSyncOption, newSyncOption));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public KeyOption getKeyOption() {
return keyOption;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetKeyOption(KeyOption newKeyOption, NotificationChain msgs) {
KeyOption oldKeyOption = keyOption;
keyOption = newKeyOption;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OptionPackage.OPTIONS__KEY_OPTION, oldKeyOption, newKeyOption);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setKeyOption(KeyOption newKeyOption) {
if (newKeyOption != keyOption) {
NotificationChain msgs = null;
if (keyOption != null)
msgs = ((InternalEObject)keyOption).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OptionPackage.OPTIONS__KEY_OPTION, null, msgs);
if (newKeyOption != null)
msgs = ((InternalEObject)newKeyOption).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OptionPackage.OPTIONS__KEY_OPTION, null, msgs);
msgs = basicSetKeyOption(newKeyOption, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OptionPackage.OPTIONS__KEY_OPTION, newKeyOption, newKeyOption));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case OptionPackage.OPTIONS__LOGIN_OPTION:
return basicSetLoginOption(null, msgs);
case OptionPackage.OPTIONS__GUI_OPTION:
return basicSetGuiOption(null, msgs);
case OptionPackage.OPTIONS__MESSAGE_OPTION:
return basicSetMessageOption(null, msgs);
case OptionPackage.OPTIONS__OTHER_OPTION:
return basicSetOtherOption(null, msgs);
case OptionPackage.OPTIONS__SYNC_OPTION:
return basicSetSyncOption(null, msgs);
case OptionPackage.OPTIONS__KEY_OPTION:
return basicSetKeyOption(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case OptionPackage.OPTIONS__LOGIN_OPTION:
return getLoginOption();
case OptionPackage.OPTIONS__GUI_OPTION:
return getGuiOption();
case OptionPackage.OPTIONS__MESSAGE_OPTION:
return getMessageOption();
case OptionPackage.OPTIONS__OTHER_OPTION:
return getOtherOption();
case OptionPackage.OPTIONS__SYNC_OPTION:
return getSyncOption();
case OptionPackage.OPTIONS__KEY_OPTION:
return getKeyOption();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case OptionPackage.OPTIONS__LOGIN_OPTION:
setLoginOption((LoginOption)newValue);
return;
case OptionPackage.OPTIONS__GUI_OPTION:
setGuiOption((GUIOption)newValue);
return;
case OptionPackage.OPTIONS__MESSAGE_OPTION:
setMessageOption((MessageOption)newValue);
return;
case OptionPackage.OPTIONS__OTHER_OPTION:
setOtherOption((OtherOption)newValue);
return;
case OptionPackage.OPTIONS__SYNC_OPTION:
setSyncOption((SyncOption)newValue);
return;
case OptionPackage.OPTIONS__KEY_OPTION:
setKeyOption((KeyOption)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case OptionPackage.OPTIONS__LOGIN_OPTION:
setLoginOption((LoginOption)null);
return;
case OptionPackage.OPTIONS__GUI_OPTION:
setGuiOption((GUIOption)null);
return;
case OptionPackage.OPTIONS__MESSAGE_OPTION:
setMessageOption((MessageOption)null);
return;
case OptionPackage.OPTIONS__OTHER_OPTION:
setOtherOption((OtherOption)null);
return;
case OptionPackage.OPTIONS__SYNC_OPTION:
setSyncOption((SyncOption)null);
return;
case OptionPackage.OPTIONS__KEY_OPTION:
setKeyOption((KeyOption)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case OptionPackage.OPTIONS__LOGIN_OPTION:
return loginOption != null;
case OptionPackage.OPTIONS__GUI_OPTION:
return guiOption != null;
case OptionPackage.OPTIONS__MESSAGE_OPTION:
return messageOption != null;
case OptionPackage.OPTIONS__OTHER_OPTION:
return otherOption != null;
case OptionPackage.OPTIONS__SYNC_OPTION:
return syncOption != null;
case OptionPackage.OPTIONS__KEY_OPTION:
return keyOption != null;
}
return super.eIsSet(featureID);
}
} //OptionsImpl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -